|  | Posted by Shelly on 11/15/06 20:24 
"Michael Fesser" <netizen@gmx.de> wrote in message news:3anml2dbf4r7t6e82q4417083r968tepkm@4ax.com...
 > .oO(Shelly)
 >
 >>If I do a submit and have it come back to the same page, all is fine.  If
 >>I
 >>now click the browser refresh button, I get another submittal.  How do I
 >>"unset" the status so that it doesn't think I clicked the submit button
 >>when
 >>I click the refresh button?
 >
 > After processing the form data use a header() call to redirect the
 > browser to the same page. If you hit refresh then, the browser just
 > sends a normal GET instead of repeating his previous POST request.
 
 Befoe I fixed it with Jerry's suggestion to send it to another page for
 processing and then have that send it back when done, I had a header
 statement going to the same page.  A refresh STILL resulted in another post
 because it passed the isset($_POST['theButton']) test.  So, if it sends a
 normal GET instead of a POST, why did it still satisfy that isset test?
 
 Shelly
  Navigation: [Reply to this message] |