you need to
protect them by applying the urlencode() translation function. The script
below shows
how to use urlencode():
print(“< html >”);
print(“< p >
Please click the links below”
.” to submit comments about FYICenter.com:< /p >
”);
$comment = ‘I want to say: “It\’s a good site! :->”‘;
$comment = urlencode($comment);
print(“< p >
”
.” ”
.”It’s an excellent site! < /p >
”);
$comment = ‘This visitor said: “It\’s an average site! :-(“‘;
$comment = urlencode($comment);
print(“< p >
”
.’’
.”It’s an average site.”);
print(“< /html >”);
No comments:
Post a Comment