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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
------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.

[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to