01-31-2008, 08:00 PM
|
#24 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Posts: 87
Thanks: 49
|
I've just created another guest book with the same code for practice. I'll probably do it a few times until I can write it from memory. I do have one questions though. Some one told me when setting the variables from the form, to use this:
Code:
$yourname = addslashes($_POST['yourname']);
$email = urlencode(addslashes($_POST['Email']));
$website = urlencode(addslashes($_POST['website']));
$comment = htmlentities(addslashes(strip_tags($_POST['comment'])));
The only thing with that is, when it's submitted it's displaying the email and website like bellow:
Quote:
Steven%40hotmail.com
http%3A%2F%2Fgoogle.com
|
Now, I could fix it by removing the urlencode, addslashes and htmlentities, but I was told to add that in. Do I really need it?
|
|
|
|