Re: rewriting the browser's url

From: Date: Sun, 14 Jan 2001 02:34:21 +0000
Subject: Re: rewriting the browser's url
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34436@lists.php.net to get a copy of this message
1) use POST method, not GET 2) don't output anything from the script that recieves the POST data, instead, redirect to another page. pseudocode follows: if( post ) { query the database ; header( 'Location: result.php' ) ; } html form At 03:23 14.1. 2001, Jared Howard wrote the following: -------------------------------------------------------------- >I need to know how to be able to eliminate the querysting portion of the >URL that is displayed on the users browser. I don't want it possible to >click refresh and reenter in the same querystring that was used previously >(eg. php runs a mysql query of INSERT based on the querystring which only >should be run once no matter how many times they click refresh). > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net ------end of quote------ ____________________________________________________________ Cynic: A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue. cynic@mail.cz

« previous php.general (#34436) next »