Re: still have the same problem

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

 



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

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