[PHP-DB] Re: Page refresh and database updation

2006-09-26 Thread Chuck Stearns
Tamkhane, Pravin wrote: Hi All, I am a PHP newbie. I am using HTTP POST request to send some data to Apache and then using MySql to store that information. Once information is stored in MySql DB successfully, I display a result page. But the problem I am facing is that, if I refresh the

RE: [PHP-DB] Re: Page refresh and database updation

2006-09-26 Thread php
You can redirect the page to the result page after the data is saved, using header(Location: successpage.php). I've used this on several sites. It's a little extra work but does prevent the reposting of data. Another option is to use AJAX to send the data to the webserver and then have the