You are here: Re: [PHP] [NEWBIE] Cant get $_POST to work « PHP « IT news, forums, messages
Re: [PHP] [NEWBIE] Cant get $_POST to work

Posted by John Nichel on 02/20/05 23:41

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация