Connecting Tech Pros Worldwide Forums | Help | Site Map

What If Someone Uses My Delimiter In Their Comment?

Jacob Lyles
Guest
 
Posts: n/a
#1: May 11 '06
Hello All,

I'm making a comment form for my website that will store the comments
in
a flat file with some sort of delimiting character. However, I'm
wondering what will happen if someone uses my delimiter within their
comment. I thought one way to protect againt this would be to choose a
character like < and convert all < to &lt . Is there a function in PHP
that does this automatically?

Thanks,

Jacob


Rik
Guest
 
Posts: n/a
#2: May 12 '06

re: What If Someone Uses My Delimiter In Their Comment?


If you absolutely HAVE to post in several ng's: crosspost, don't mulitpost:
http://oakroadsystems.com/genl/unice.htm#xpost

I've answered you already in some other ng.
It would have appeared here if done correctly.

Grtz,
--
Rik Wasmus


Jacob Lyles
Guest
 
Posts: n/a
#3: May 12 '06

re: What If Someone Uses My Delimiter In Their Comment?


Sorry, I meant to post in comp.lang.php but accidentally posted in
alt.php first. I will try not to do so in the future.

Closed Thread