forms and method POST - variables

From: Date: Wed, 09 Jan 2008 16:25:35 +0000
Subject: forms and method POST - variables
Groups: php.db 
Request: Send a blank email to php-db+get-44500@lists.php.net to get a copy of this message
Hi, I have one question about forms and php (which I use for Mysql too). Do I need for variables from any form in html and method POST (then in php script) to set these variables with: $variable=$_POST['variable']; For example: <html> <head> <title> FORM</title> </head> <body> <form action="do_something.php" method="POST"> Input something <br> <input type="text" name="variable"> <input type="submit" value="submit"> </FORM> </body> </html> And then.in do_something.php <html> <head> <title>DO SOMETHING</title> </head> <body> <?php $variable=$_POST['variable']; echo "<br><b>Variable: </b>".$variable; ?> </body> </html> Because I got some old scripts where I don´t have this setting.they worked on MS Win2000 - PWS and PHP 4.0 but now - with Apache 2.2.6, PHP 5.2 on WIN XP it doesn´t work. Thank you for any advice. Lukas

« previous php.db (#44500) next »