Re: Can a script run twice?

From: Date: Tue, 23 May 2006 15:21:56 +0000
Subject: Re: Can a script run twice?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-236723@lists.php.net to get a copy of this message
Is the 'Add Ticket' button a GET or POST request? If it's a POST then chances are the script itself has a logic error since the user would get asked if they wanted to repost the data. If it's a get then you've violated one of the cardinal rules of web-based application development - GETs get, POSTs do. <a class="button" accesskey="A" href="ticketaddserve.php?enqno=0">Add Ticket</a> Just change enqno= for a different queue. Found the simple answer - Double click - two records !
Like the previous poster says, GET requests should not "put, they should only "get". Use POST to write to the database. -- Anthony Ettinger Signature: http://chovy.dyndns.org/hcard.html

« previous php.general (#236723) next »