PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Caped Knight
Forum Commoner
Posts: 33 Joined: Wed Jan 01, 2003 6:20 pm
Location: Somewhere...out there...
Post
by Caped Knight » Wed Jul 23, 2003 9:22 pm
Is there an easy way to prevent people from entering HTML into my database other than ereg() and ereg_replace()?
Thanks.
qads
DevNet Resident
Posts: 1199 Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane
Post
by qads » Wed Jul 23, 2003 9:30 pm
htmlspecialchars();
Caped Knight
Forum Commoner
Posts: 33 Joined: Wed Jan 01, 2003 6:20 pm
Location: Somewhere...out there...
Post
by Caped Knight » Wed Jul 23, 2003 11:00 pm
Thanks, qads.
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Thu Jul 24, 2003 3:41 am
Also, have a look at
strip_tags .