Jump to content

Submit form


Rochtus

Recommended Posts

if you are looking to redirect to a different page immediately after, just do a normal form submit, and have the script that is processing forward the user after with:

header('Location: index.php');
exit;

...as stated by @dzelenika

 

the only case i can see the need for ajax is if you needed to submit multiple forms or you didn't want to navigate away from the current page

Link to comment
https://forums.phpfreaks.com/topic/167040-submit-form/#findComment-881916
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.