I am passing a string value via a url to be used for printing on a page and
for sending info via email.
I first encode the string before passing it.
The issue I have is for strings that contain single or double quotes. When
I print the value that has been passed in the url the \ is printed. For
example: A Golfer\'s Paradise
I have to tried to decode the string before printing it -- but the \ still
prints.
Here is the code:
$url_title = rawurlencode( $headline );
print "<tr><td><font face='arial' size='1'><font face='arial' size='1'><a
href='javascript:openQuote(\"http://www.aboutgolf.com/guide/miniquote_form.i
nc.php3?site=$site&ad=$ad®ion=$region&header=$url_title\",
\"helpWin\");'><b>Contact us for more information</b></a></font>";
And the in the miniquote_form.inc.php3 file:
<?php
$headertitle = rawURLdecode( $header );
print "$headertitle"; ?>
--
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]