Re: Page Refresh

From: Date: Tue, 23 Apr 2002 14:10:59 +0000
Subject: Re: Page Refresh
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94163@lists.php.net to get a copy of this message
You could use a SESSION variable called for instance 'SUBMIT_TO_DB'. After submitting to the database, you simply set this variable 'SUBMIT_TO_DB' to 'NO'... The next time the page is reloaded, you won't have to submit one more time to the database, provided you check whether 'SUBMIT_TO_DB' is 'NO'. And opposite: if it is not set, you SHOULD do the submission to DB. My $0.02 Eivind

« previous php.general (#94163) next »