[PHP] help: form variables have CR/LF ?

2001-09-21 Thread Patrick Sibenaler




Does anyone know what is going wrong, when all of a sudden, the 
content of PHP global variables that are generated from a POSTED 
form, have a CR/LF prepended?

That means, looking at a field 'name' where 'john' was typed in, 
I'm getting a variable $name with the content

'
john'

instead of 'john'

Anyone seen this I found that it only happens with the POST 
method. GET works fine (but I cannot use that).

Any help is greatly appreciated.


greets.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] help: form variables have CR/LF ?

2001-09-21 Thread Tamas Arpad

On Friday 21 September 2001 16:27, you wrote:
 Does anyone know what is going wrong, when all of a sudden, the
 content of PHP global variables that are generated from a POSTED
 form, have a CR/LF prepended?
It happens to me when I'm using Konqueror and multipart/form-data 
enctype in forms (because of uploaded images).
Because of that I always use trim() for all the posted variables when 
possible.
Arpi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]