Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Tutorials: Form Data Display and Security

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,136
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 26, 2009

Display form data correctly (without slashes being added!) and then ensure you keep this properly displayed data secure with the htmlentities function.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (26)

Sign In or Sign Up now to post a comment!
  • I am GLAD I checked this out...geez this was a HUGE gap in my commenting system, I feel stupid for overlooking it but yea, THANKS!

    I'll be sure to check your other security videos as well, you are ace man! Alex to the rescue! :)

  • This is what I was looking for! Thank you very much!

  • okay, I have downloaded all the necessary stuff to run PHP but... when I save a file with the .php extension it doesn't save as a PHP file. It saves as a PhotoParade Album, pretty much making it impossible to view .php files.

    Can any one help?

  • OKEEEEEEEEY 

  • @JelvinJS7 yes you can... it`s same thing...

  • I have a question: (this sounds kinda obvious, but I just wanna make sure). Can I put the "htmlenitities(stripslashes…)" part in the area where I hold my variable, instead if the echo part?

    Like: "$hi = htmlenitities(stripslashes($_P­OST['field']));"

    Versus

    "$hi = $_POST['field'];

    echo htmlenitities(stripslashes($hi­));"

  • nice tutorial i have watched every one tutorials, i hope you keep making them, everything i know i just about learnt from you

    Thanks Alex!

  • nice tut but ...

    cheap way of improving your microphone "specs":

    don't puff into it! you don't need to talk directly into it, it will register very good even at an angle. the letters "P", "T", "B" & "D" are the worst puffers but also a part of the language. you can then compensate if the volume drops a little by adjusting the input level in your software or something.

    No NEED to buy a puff screen until you've tested.

    a little counter tutorial : )

  • how about you extend this tutorial that allow text become bold when it was inside the bold html tag. 

  • do you have safe mode on? if so turn it off well doing your videos and add the mysql_real_escape_string() to your $_POST it will still escape and will tell the people watching that they need it (since they do )

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more