unexpected return from $_POST['foo']
| From: | Kyle W. Cartmell | Date: | Fri, 27 Jun 2003 08:50:38 +0000 |
| Subject: | unexpected return from $_POST['foo'] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-153074@lists.php.net to get a copy of this message | ||
Given a page containing a form which posts data to another page...
<HTML>
<BODY>
Please enter a string.<BR>
<FORM method="post" action="nextpage.php">
<INPUT type="text" name="wakka">
<INPUT type="submit" name="submit">
</FORM>
</BODY>
</HTML>
And a page which accepts this data...
<HTML>
<BODY>
<?PHP
echo $_POST['wakka'];
?>
</BODY>
</HTML>
If I type "blueberry_muffins" into the text field and click submit, the resulting output
is as follows...
blueberry_muffinswakka=blueberry_muffins
However the output I expected was, of course...
blueberry_muffins
Have you ever seen anything like this?
Am I doing something wrong?
Do you need more information?
Thanks! :)
Kyle W. Cartmell
- a mildly confused PHP newb