I've recently encountered a problem with hidden (POST) form fields being
ignored when an html textarea (or text) tag value contains the following
character: '

It seems when you paste text from outlook, to an html 'textarea', it
converts the apostrophe character (') to this character ('), which then
causes the 1st hidden form field (if there are more than one hidden form
field), or the only hidden form field (if there is only 1 hidden form
field), to be ignored in the $_POST variables collected on the page that the
form submits too.

A simple way to replace the string is: $str = preg_replace("/'/","'",$str);

But I was curious if anyone else has experienced this issue, or has a clear
description of why it occurs.

Thanks,

SEAN O'DONNELL
PROGRAMMER/ANALYST

The Design People, Inc.
Your Future in Site.

[ phone 310.577.9111 ext. 104 | fax 310.577.9444 ]
12 WASHINGTON BLVD. | SECOND FLOOR | MARINA DEL REY | CA 90292-5124

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

Reply via email to