bullbreed Posted January 19, 2010 Share Posted January 19, 2010 Hi I have a page called clientinfo.php This page shows information related to a user like this clientinfo.php?username=john Also on this page I have a form that submits itself to the same page for processing. The information that the form submits is shown on the same clientinfo.php?username=john page that the form has just submited itself to. But althought the page submits to itself I still have to press refresh to see the newly subitted data. How can I get the page to refresh itself when the form has been submitted so the data is shows on the page immediately. Link to comment https://forums.phpfreaks.com/topic/189083-refresh-the-dynamic-php-page/ Share on other sites More sharing options...
piyush23424 Posted January 19, 2010 Share Posted January 19, 2010 rearrange your code structure according to the following structure 1. if(FORM_SUBMITTED){ // process the form } 2. code to show the client info 3. form Link to comment https://forums.phpfreaks.com/topic/189083-refresh-the-dynamic-php-page/#findComment-998308 Share on other sites More sharing options...
bullbreed Posted January 19, 2010 Author Share Posted January 19, 2010 wow. You little beauty. I couldn't get this right for nothing. Your a star. Thank you :D :D :D Link to comment https://forums.phpfreaks.com/topic/189083-refresh-the-dynamic-php-page/#findComment-998339 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.