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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.