Re: Can't fetch HTTP POST data in PHP?
| From: | Kim Steinhaug | Date: | Mon, 17 Nov 2003 10:32:38 +0000 |
| Subject: | Re: Can't fetch HTTP POST data in PHP? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169910@lists.php.net to get a copy of this message | ||
I dont see the problem here at all, here is my test :
CutNpaste into your own environment ans save as .php file .
All I did was remove the php_info() so that variables dont get
messed up (apparently), and removed the error_reporting.
Result gives this :
array(3) { ["username"]=> string(3) "123" ["email"]=> string(3)
"123"
["submit"]=> string(10) "Submit me!" }
-------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<?php
//error_reporting(E_ALL);
echo "<pre>\n";
//phpinfo();
echo "</pre>\n<br/>";
var_dump($_POST);
?>
<form action="<?=$PHP_SELF?>" method="POST">
Your name: <input type="text" name="username"/><br/>
Email: <input type="text" name="email"/></br>
<input type="submit" name="submit" value="Submit me!">
</form>
</body>
</html>
--------------------------------------------------------------
--
Kim Steinhaug
---------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
---------------------------------------------------------------
"David T-G" <davidtg-php@justpickone.org> wrote in message
news:20031117033050.GT9710@justpickone.org...