Re[2]: Problems escaping apostrophe, please help

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

 



Hi,

TR> What I do to overcome this is in PHP do:

TR> $content = rawurlencode($content);

TR> and in the html javascript:

TR> unescape("$content");


I didn't do that very well, your code would look something like:

<li>
  <a href="#" 
    onclick='document.form1.how.value=unescape("<?php rawurlencode($row['how'])?>");
    document.form1.factor.value=unescape("<?php rawurlencode($row['factor']))?>");
    document.form1.submit();'><?php htmlentities($row['factor'])?>
  </a>
</li>




-- 
regards,
Tom

-- 
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