At 22:47 03.04.2001 +0300, Vlad Bejenaru aka BJ wrote:
>I copied this example from the tutorial page of php.net:
>first is the file with the form:
>
><form action="action.php" method="post">
>Your name: <input type=text name=name>
>You age: <input type=text name=age>
><input type=submit>
></form>
>
>and second is da action:
>
>Hi <?php echo $name?>.  You are <?php echo $age?> years old.
>
>
>the problem is that is not listing the values that i submit in the first
>file. Can anyone tell me what is wrong? I tried and with method get and the
>result is the same!

turn on register_globals in your php.ini or even better use the EGPCS arrays.
echo $HTTP_POST_VARS["name"], $HTTP_POST_VARS["age"]

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de


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