Notice: Undefined index

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, This is a new install of PHP 5.0.4 on XP, I'm testing if it's
installed correctly with the usual test.htm:
<form action="action.php" method="POST">

Your name: <input type="text" name="name" />

Your age: <input type="text" name="age" />

<input type="submit">

</form>

Action.php:

<?php

echo $_POST['name'];

echo $_POST['age'];

?>

Results:

C:\NCC>action.php

Notice: Undefined index: name in C:\NCC\action.php on line 2

Notice: Undefined index: age in C:\NCC\action.php on line 3

C:\NCC>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux