I want users to remain in index.php when they summit their form. I have seen this in some websites but don't know hot it done.
Can anyone help me?
Thanks
All you need to do is submit the page to itself from the form tag. you will also need to make sure you give your submit button a name attribute. For example.
This wont be a solution what he is looking... he wants index.php to submit data to process.php
n btw even if u submit the data to same page, the page gets refreshed which can be avoided only by asynchronous data transfer possible through AJAX.
All you need to do is submit the page to itself from the form tag. you will also need to make sure you give your submit button a name attribute. For example.
This wont be a solution what he is looking... he wants index.php to submit data to process.php
n btw even if u submit the data to same page, the page gets refreshed which can be avoided only by asynchronous data transfer possible through AJAX.
Apologies you are correct, I misread the original post.
sure this will do the trick but i dont feel its a healthy practice as the user will get a window flashed in front n then disappearing....
Also, after closing the process file, how will u update the values in original index.php without refreshing it... I agree u will submit the form but u need to show a success or error message to user regarding it...
so best way to achieve this(AFAIK) is AJAX
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.