What If Someone Uses My Delimiter In Their Comment?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jacob Lyles

    What If Someone Uses My Delimiter In Their Comment?

    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

    #2
    Re: What If Someone Uses My Delimiter In Their Comment?

    If you absolutely HAVE to post in several ng's: crosspost, don't mulitpost:


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

    Grtz,
    --
    Rik Wasmus


    Comment

    • Jacob Lyles

      #3
      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.

      Comment

      Working...