#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 1999
    Posts
    32
    Rep Power
    16
    I've got a problem. I've got a form, where it submits some info and adds it to a txt file. The file is then displayed on the front page of my site; however, there is a security problem i'd like to fix dealing with html. How would you go about disabling the use of html in a form? Any thoughts/suggestions are welcome and appreciated. Thanks.
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    <<
    How would you go about disabling the use of html in a form?
    >>


    You can use htmlentities() function to disable html entries before display back your text on the screen..

    eg:

    <?
    txt=htmlentities(txt);
    echo txt;
    ?>



    check it out the manual for details.
    -----

    ------------------
    SR -
    webshiju.com

    "The fear of the LORD is the beginning of knowledge..."

    [This message has been edited by Shiju Rajan (edited August 09, 2000).]

Similar Threads

  1. HELP Editing database through HTML form
    By kashaf in forum PHP Development
    Replies: 2
    Last Post: February 12th, 2004, 12:17 PM
  2. Replies: 9
    Last Post: January 29th, 2004, 08:33 AM
  3. How to get client email??Help plz
    By Gecko22 in forum ASP Programming
    Replies: 12
    Last Post: January 22nd, 2004, 02:40 PM
  4. not returning records when it should
    By aliaga61 in forum ASP Programming
    Replies: 3
    Last Post: January 16th, 2004, 11:57 AM
  5. 'Object required' error
    By aliaga61 in forum ASP Programming
    Replies: 1
    Last Post: January 16th, 2004, 09:48 AM

IMN logo majestic logo threadwatch logo seochat tools logo