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

2003-06-27 Thread sven
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 [EMAIL PROTECTED] schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



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

2003-06-27 Thread Kyle W. Cartmell
When I var_export, I get the following information...

array ( 'wakka' = 'blueberry_muffinswakka=blueberry_muffins', ).

There is no further useful information in the HTML code at all. It's pretty
empty in there.

I've been studying my configuration, but to no avail at this point. I'm not
sure where to even look for this crazy thing. Thinking about clobbering and
stepping back a version or something of that sort. But I'm in pain. :)

[tnx for the thoughts!!]


Sven [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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 [EMAIL PROTECTED] schrieb im Newsbeitrag
 news:[EMAIL PROTECTED]
 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





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php