Re: First stupid post of the year.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 1:08 PM -0800 1/2/08, Casey wrote:

OKAY. Let's clarify.

Here's the string in HTML:
       A       

The browser then passes it to GET/POST. It decodes the entities, and
then urlencodes them. Now it looks like this:
%a0%20%a0%20%a0%20%a0A%a0%20%a0%20%a0%20%a0

Then PHP receives it, urldecodes the string, then stuffs it inside
$_POST, $_GET, $_REQUEST, etc. Now it's like this:
       A

$_POST['submit'] == '       A       ' // TRUE.


... *pokes my solution*...
$value = trim($value, chr(32) . chr(160));

Good clarification, but not a solution. It didn't work.

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux