Wednesday, 25 November 2015

26_php_htmlentities

Securing Form data using htmlentities


Create one php page and Create one form… Check out the code below




Run the page and write some in textbox, as specify below



Here in the output the “30” is in bold and “parmar” is in underline



We wasn’t allowed user to enter the tag in page. And we want to secure our database as well as not allowed user to enter this kind of stuff.


We need to change something in our code.



Run the page And Check the output now



No comments:

Post a Comment