Re: still have the same problem
| From: | Marek Kilimajer | Date: | Mon, 13 Dec 2004 08:19:24 +0000 |
| Subject: | Re: still have the same problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204138@lists.php.net to get a copy of this message | ||
Mecnun wrote:
I have a form and a php file. I enter some values from the form and click to submit button. The values that I enter can't be seen on the output. I'm using Php php-4.0.5 and my register_global is set to Off. HTML file: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>9.2</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <form action="listing9.3.php" method="POST"> Name: <br> <input type = "text" name="user"> <br> Address:<br> <textarea name="address" rows="5" cols="40"></textarea> <br> <input type="submit" value="Send"> </form> </body> </html> PHP File: <?php print "Welcome <b> $_POST[user] </b> <P>\n\n"; print "Your address is:<P>\n\n <b> $_POST[address] </b>"; ?> The output dont show the user value or address value. Thanks, Selim$_POST, $_GET, $_REQUEST, $_SERVER and $_FILES superglobals are available since php-4.1 http://www.php.net/variables.predefined