Posted by mngong on 11/08/97 11:43
PHP 5 on apache
$_POST and $_GET return no values
Not sure anything was changed in php.ini file
register_globals = Off
magic_quotes_gpc = Off
The sample code below is an example
<html>
<body><form action="welcome.php" method="POST">
Enter your name: <input type="text" name="name" />
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form></body>
</html>
WELCOME>PHP
<html>
<body>Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old!</body>
</html>
This returns
Welcome
You are years Old!
Your expert advice is greatly appreciated
[Back to original message]
|