Jump to content

Combining Two Scripts


xn1

Recommended Posts

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

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.