Re: [NEWBIE] Cant get $_POST to work

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

 



David Freedman wrote:
I have this simple form file:
<html>
<head>
 </head>
<body>
 <form action="test.php" method="post">
Name: <input type="text" name="name" value="your name" /><br/>
Age: <input type="text" name="age" value="your age" /><br/>
<input type="submit" name="submit" value="submit" />
</form>
</body>
</html>
Which passes (I wish!) data to this script:

<?php
$name = $_POST['name'] ;
$age = $_POST['age'] ;
print("Hello, $name! You are $age years old!");
?>

What's the output if you put this on test.php...

<pre>
<?php

print_r ( $_POST );

?>
</pre>

--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com

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