<div class="gmail_quote">On Mon, Apr 12, 2010 at 9:03 AM, Victor Subervi <span dir="ltr"><<a href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote">On Sun, Apr 11, 2010 at 4:29 PM, Tim Chase <span dir="ltr"><<a href="mailto:python.list@tim.thechases.com" target="_blank">python.list@tim.thechases.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div><div></div><div>On 04/11/2010 02:53 PM, MRAB wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Victor Subervi wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi;<br>
I send variables to a script. The script adds appropriate lines into a<br>
database of an order to my shopping cart. When I refresh the screen, as<br>
no doubt some customers will do, it re-ads those orders. Now, I can<br>
delete them, but that's not the point. I don't want it to re-ad the<br>
orders. How do I skirt this problem?<br>
<br>
</blockquote>
When you click on the Submit button on the form it should post the data,<br>
ie use method="post", not method="get". If refreshing causes it to<br>
re-submit, then you're using the wrong method. This is basic stuff.<br>
</blockquote>
<br></div></div>
And if you do POST your data (which you should if you're attempting to change state on the server), you should use a post/redirect/get pattern[1].  This will prevent the browser from giving the "you've already submitted this data; do you want to resubmit it?" message that most should give you if you refresh a POST'ed page.<br>


<br>
And therein demonstrates the need to know HTTP as mentioned in my previous reply to you (VS, not MRAB).<br></blockquote><div><br>Man, I just forget this stuff. Dunno why. Yeah, just set a var in the URL of the post. Right. Sorry. Thanks.<br>

beno<br></div></div><br>
</blockquote></div>Correction. I was not familiar with Post/Redirect/Get. Thanks, Tim<br>beno<br>