"sunny AT wde" <[EMAIL PROTECTED]> wrote:
> i've written a form, which passes value to a ph script to insert them
> into mysql. from there on, i forward onto another page, but using :
> header("Location: http://www.foo.com/foo2.php?id=4&user=foo";);
>
> now i really don't want to have the url on the next page looking like
> that because people might change the values, refresh the page and
> mess up my database.
>
> so is there any other ways i can pass values on??

Perhaps you should consider using the POST method instead of the GET method.
Then the variables are not displayed in the query string.  If you are
passing across a series of pages, after the first page you'll want to add
the variables you're going to pass to hidden input fields or use session
variables which will make the variables available throughout the user's
session or until you destroy the session.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
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