xn1 Posted March 15, 2011 Share Posted March 15, 2011 Hello all, I have a simple form which ends in header( "Location: thankyou.php" ); What I have done on the site so far is to use Ajax to load content into a specific Div which uses the following code <a href="javascript:ajaxpage('home.php', 'content-index');"></a> Is there a way to effectively combine the two together to load the thankyou page (upon pressing submit) into the content-index div? Thank you in advance Link to comment https://forums.phpfreaks.com/topic/230728-combining-two-scripts/ Share on other sites More sharing options...
flolam Posted March 15, 2011 Share Posted March 15, 2011 Yes, you would have to submit the form using ajax. Googleing "ajax submit form" I found http://www.simonerodriguez.com/ajax-form-submit-example/ , but I'm sure you will find loads of other tutorials. Link to comment https://forums.phpfreaks.com/topic/230728-combining-two-scripts/#findComment-1187884 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.