Jump to content

How to refresh index.php page from a different page?


kookypirate

Recommended Posts

Hi all.  I have a form (form.php) which calls and executes code in post.php to place form data in mysql.  The form is a popup ajax form and after I submit the form, I want the index.php page (where the link to my form resides) to refresh. 

 

The form is submitting data to mysql which then appears on my index.php, but currently I have to refresh index.php to see it. 

 

Any ideas?  Thanks. 

You'll probably want to post this question to Javascript board :) 

Solutions will be something like this:

 

opener.location.reload(true);

 

and you call this say onload of post.php (or in your Ajax code that displays result of form submission)

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.