Zymic

Webmaster resources

Professional XHTML & CSS Coding

Including Wordpress & Vbulletin from $145 - Learn More

PHP & MySQL

Free Tutorials » PHP & MySQL » Sanitisation and Validation in PHP

Sanitisation and Validation are important terms to understand when writing PHP applications.

Tutorial comments

16.05.2008 -

mikeboyles says …

I think it is excellent for people to follow in designing their own scripts. Well explained and useful.

10.05.2008 -

nettronik says …

Extremely Help ful

10.05.2008 -

loverlol says …

good

08.05.2008 -

kurizzu says …

i dont understant.. :(

21.04.2008 -

zinfinal says …

masomenos

16.04.2008 -

hamed6270 says …

salam be hame dosstan aziz

16.04.2008 -

hamed6270 says …

salam be hame dosstan aziz

16.04.2008 -

hamed6270 says …

gooya forum

16.04.2008 -

hamed6270 says …

gooya forum

04.04.2008 -

manhgd says …

great!

14.03.2008 -

xforumfree says …

Very good

07.03.2008 -

chullo says …

Where do i get rice and chicken?

07.03.2008 -

seeal says …

thanxz for your tutorial

07.03.2008 -

giotcafes says …

thanks very good

07.03.2008 -

fbabol says …

I think vaska94 is full of crap. Show us what you got then, smartass fool

20.02.2008 -

hunterxhunter says …

nice

20.02.2008 -

JJSSMAN says …

The best!!

20.02.2008 -

vaska94 says …

ne xuia sebe :D, this tutorial is for lamers & noobs only :D

14.02.2008 -

mahirharoon says …

but it cannot vlidate if that is a real email or not
i rember there was a tut about validating real domains (checking even mail servers) in frihost's php section as areply

12.02.2008 -

mostafatoncy says …

nice

11.02.2008 -

nikolis17 says …

@romka

md5 is an encryption algorithm used to produce a 32-character hexadecimal number from a given value (See: http://en.wikipedia.org/wiki/MD5). In the example, the PHP script is taking a user-given string supplied through the processed form and then converting it to a md5 hash with the PHP function md5( string ). This is for security reasons, as the password data needs to be stored in the database securely. The md5 hash insures that the password will remain secure (to a degree), even if the database is exploited.

For more information on using md5 with PHP, please visit the official PHP website.
http://php.net/md5


@thehealer
Read it as you would a book, from start to finish. :P Read each paragraph that describes the following code, and then review the code posted. If you are still unclear on a subject, or feel that the tutorial's poster did not elaborate enough on a subject, then please visit the official PHP site and find out more there. There's many examples and user comments on that site. Also, as a note, this code provided in the tutorial is not meant for Copy+Paste, ready-to-go use. It's simply meant to educate you, and perhaps teach you how to better secure your PHP script by applying certain measurements to validate and "sanitize" information sent via a form, which could unfortunately include injections and exploits.

07.02.2008 -

romka says …

great tuttorial but i don't understand 1 thing. if i ll use the same example as above in order to create a user validation form, can i just use the md5 as it is???
pls someone help me pls. i have to do it as soon as posible and i don't get it at all. i know md5 is about encryption. my email is r.spyridis@gmail.com if someone can help me pls e-mail me
thanks

23.01.2008 -

oblivionsources says …

Nice tutorial, definitely going to finish reading it when I get home ;D

16.01.2008 -

kingtut says …

are you sure all this are free? this is amazing man

10.01.2008 -

thehealer says …

its great i like the security of it all, but i am still not sure how to put all these bits of code together andnot sure what i should be reading

04.01.2008 -

cosme says …

selamınaleyküm şimdi
türkler bu ne iş yerıyor

28.12.2007 -

samer says …

jelly good

23.12.2007 -

nour says …

hala

09.12.2007 -

jalqamus says …

bilal كيف جالكم بدنا منتدى عربي

07.12.2007 -

Gandalf says …

de 10 ^^

05.12.2007 -

dbarasuk says …

helpful

22.11.2007 -

fayayz says …

Hello How are u Nice Zymic Service i love it a long time

06.11.2007 -

nakhee says …

hi

31.10.2007 -

veriu says …

do you provide PHP ??!?! If you do how can i use it!?

16.10.2007 -

loscocorotes says …

esta super

16.10.2007 -

loscocorotes says …

esta super

11.10.2007 -

albra says …

Thanks
very easy explains

28.09.2007 -

pcszeng says …

Very good tutorial. Explains many things and very clear when discussing about certain aspects

19.09.2007 -

stanimir says …

Sorry for my late post :). I submit before write something...So that is fantastic I've really like it and I will used for future in my scripts!!!

18.09.2007 -

MrCracker says …

Good stuff.

Tutorial statistics

Date added:
25.08.2007
Author:
Alex Elliott
User rating:
4/5
Rate tutorial:
Total views:
18326
Total comments:
40

Advertisements