Re: Clear form post data

From: Date: Thu, 24 Jan 2002 14:40:03 +0000
Subject: Re: Clear form post data
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81883@lists.php.net to get a copy of this message
The general approach when a form has $PHP_SELF as the action value is to use a switch construct and in one of the cases perform the mentioned db operations, in all other cases (depends what variable you'd be switching) simply do not perform them. HTH, Nasko "Conrad Strydom" <conrad@generator.co.za> schrieb im Newsbeitrag news:20020124110605.40032.qmail@pb1.pair.com... > um , lets say a form calls its own page , does some db operations and then > returns to its former self , > > how do you get it to not perform said db operations on refresh? > > i.e the data is reposted and thus the submit variable still appears to be > set? > > Thanks > >

« previous php.general (#81883) next »