Hey everyone. I ran into a really weird issue that I was hoping I could
operate on hidden text values. Those values may be posted, in which
case PHP then prints them back to the page via what comes in on $_POST.
The weird thing is, I was no longer able to match substrings inside
over this for a couple hours, until I realized that the string's length
was being increased by one after posting (I found this out in
"substring\n" were being replaced by "substring(carriage return)\n"
For now, I'm simply doing str_replace(chr(13), "", $_POST['value'])
before re-inserting it into the HTML, but I was wondering why PHP is
inserting those extra characters.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php