★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/002354.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  Enable/disable html in form processing

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   Enable/disable html in form processing
Samwise
Junior Member
posted August 09, 2000 06:25 PM     Click Here to See the Profile for Samwise   Click Here to Email Samwise     Edit/Delete Message Reply w/Quote
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.

Shiju Rajan
Member
posted August 09, 2000 08:48 PM     Click Here to See the Profile for Shiju Rajan   Click Here to Email Shiju Rajan     Edit/Delete Message Reply w/Quote

<<
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).]

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.