unemployment Posted March 30, 2011 Share Posted March 30, 2011 After I submit form data how can I force the page to refresh so I can see the changes take effect? I know this is probably a very basic question. Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted March 30, 2011 Share Posted March 30, 2011 Try using: <meta http-equiv="REFRESH" content="0;url=URL_THAT_U_WANT_TO_REFRESH"> Quote Link to comment Share on other sites More sharing options...
unemployment Posted March 30, 2011 Author Share Posted March 30, 2011 That didn't work for me. It just was continually refreshing the page. Quote Link to comment Share on other sites More sharing options...
adamlacombe Posted March 30, 2011 Share Posted March 30, 2011 well where are you putting it? Post your code EDIT: <?php if($_POST['submit']){ // insert query here echo 'Content submitted'; echo '<meta http-equiv="REFRESH" content="0;url=URL_THAT_U_WANT_TO_REFRESH">'; }else{ //your form goes here, make sure you name your submit button, submit } ?> Quote Link to comment Share on other sites More sharing options...
unemployment Posted March 30, 2011 Author Share Posted March 30, 2011 well where are you putting it? Post your code EDIT: <?php if($_POST['submit']){ // insert query here echo 'Content submitted'; echo '<meta http-equiv="REFRESH" content="0;url=URL_THAT_U_WANT_TO_REFRESH">'; }else{ //your form goes here, make sure you name your submit button, submit } ?> I just used header location and that works fine. 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.