Problem Passing Parameters in a form
From: Gil Grodsky (ggrodsky_at_charter.net)
Date: 03/09/05
- Next message: J.O. Aho: "Re: Problem Passing Parameters in a form"
- Previous message: Marcos: "Re: Url Rewriting + php"
- Next in thread: J.O. Aho: "Re: Problem Passing Parameters in a form"
- Reply: J.O. Aho: "Re: Problem Passing Parameters in a form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 09 Mar 2005 06:36:56 -0800
I am running Apache 2 and PHP 4.3.8 in the ubuntu distribution of linux
(based on debian). I am POSTing two variables in a form. The second
page doesn't start with the two variables defined, I have to exctract
them from $HTTP_POST_VARS at the beginning of my file. I inserted the code:
<?php
$uname=$HTTP_POST_VARS["uname"];
$pw=$HTTP_POST_VARS["pw"];
?>
at the beginning of my file. Without that code, the variables are not
defined.
The tutorial that I am working through says that the variables are just
going to be defined.
Is there a configuration item I need to change, or am I missing something?
Thanks for you help.
Gil Grodsky
PS: In anticipation of questions, here is the snipit where I create the
form:
<form method="POST" action="t2.php">
Username: <INPUT type="TEXT" name="uname"><br/><br/>
Password: <input type="PASSWORD" name="pw"><br/><br/>
<input type="SUBMIT"> <input type="RESET"><br/>
- Next message: J.O. Aho: "Re: Problem Passing Parameters in a form"
- Previous message: Marcos: "Re: Url Rewriting + php"
- Next in thread: J.O. Aho: "Re: Problem Passing Parameters in a form"
- Reply: J.O. Aho: "Re: Problem Passing Parameters in a form"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|