Re: unexpected return from $_POST['foo']

From: Date: Fri, 27 Jun 2003 09:22:01 +0000
Subject: Re: unexpected return from $_POST['foo']
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153076@lists.php.net to get a copy of this message
strange. look into the sourcecode of your output-page, whether there is more information (html-tags, i.e.). and try var_export($_POST); instead of you echo to see what information come with post. maybe it's your server/php config. your code works for me. ciao SVEN "Kyle W. Cartmell" <banyanvines@hotmail.com> schrieb im Newsbeitrag news:000c01c33c89$2ee806d0$6401a8c0@shippo... 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

« previous php.general (#153076) next »