Posted by Collie on 12/06/05 02:27
PHP version 5.1.1
Apache 2.0.55.
code;
index.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<form action="foo.php" method="post" name="form">
<input name='username' type="text" value="colin">
<input name="email" type="text" value="crona...@email.com">
<input name="submit" type="submit" value="submit me!">
</form>
</body>
</html>
foo.php
<?php
echo "We are on foo.php";
echo "<br>";
$username = isset($_POST['username']) ? $_POST['username'] :
NULL;
$email = isset($_POST['email']) ? $_POST['email'] : NULL;
echo $username;
echo $email;
?>
Output;
We are on foo.php
So simple. So easy. Yet $username and $email will not get printed.
All my forms worked perfectly last week (boo-hoo, I know), but now only
GET will work on even the simplest of forms. And I would rather not go
through every form and change them to get.
Cause it's past midnight on my second day of trying to fix this I have
to ask.......
Any ideas?
Did I change a php.ini setting in my sleep?
/* It can take hours to find the problem and a second to fix it. */
[Back to original message]
|