RE: [PHP] Unwanted signs!
| From: | Stewart Taylor | Date: | Thu, 22 Mar 2001 15:55:23 +0000 |
| Subject: | RE: [PHP] Unwanted signs! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-45133@lists.php.net to get a copy of this message | ||
You can use the strip_tags function to remove HTML tags from the user
inputted data
e.g. $name = strip_tags($name)
-Stewart
-----Original Message-----
From: Brian Rosenkrantz [mailto:brian@webhullet.dk]
Sent: 22 March 2001 15:50
To: php-general@lists.php.net
Subject: [PHP] Unwanted signs!
I'm new to php (and from Denmark:-) and I've just made my first guestbook,
but I don't want people to be able to write there name like this
<h1>name</h1>
How can I delete these signs?
Please help!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net