kookypirate Posted May 19, 2010 Share Posted May 19, 2010 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. Link to comment https://forums.phpfreaks.com/topic/202296-how-to-refresh-indexphp-page-from-a-different-page/ Share on other sites More sharing options...
Sergey Popov Posted May 19, 2010 Share Posted May 19, 2010 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) Link to comment https://forums.phpfreaks.com/topic/202296-how-to-refresh-indexphp-page-from-a-different-page/#findComment-1060774 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.