Hi,
I've got a standard HTML form (eg. 'contact.htm') that submits to a PHP page, which in turn emails the details to me and inserts into a MySQL db. Everything is working fine, except I can't create a sticky form when a user needs to resubmit. I've tried everything the books say (ie inserting the relevant $_POST[] variable in the form's 'value' bit and changing the page to .php) - but no joy if the page is returned to via a standard a href="contact.htm" command. I'm wondering whether the $_POST array is still set when the HTML form page is reloaded, or if it is deleted each time. I've noticed that using the browser's 'back' button DOES retain the form's details - is there a PHP way to operate this?
Sorry for the long-winded explanation!
I've got a standard HTML form (eg. 'contact.htm') that submits to a PHP page, which in turn emails the details to me and inserts into a MySQL db. Everything is working fine, except I can't create a sticky form when a user needs to resubmit. I've tried everything the books say (ie inserting the relevant $_POST[] variable in the form's 'value' bit and changing the page to .php) - but no joy if the page is returned to via a standard a href="contact.htm" command. I'm wondering whether the $_POST array is still set when the HTML form page is reloaded, or if it is deleted each time. I've noticed that using the browser's 'back' button DOES retain the form's details - is there a PHP way to operate this?
Sorry for the long-winded explanation!