Web Analytics Made Easy -
StatCounter PHP Form Validation - CodingForum

Announcement

Collapse
No announcement yet.

PHP Form Validation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP Form Validation

    Well, I've been searching around for a while to try to add php validation to my register and login forms, after reading a, quite shocking, article about SQL injection, as it seems so easy! I have found the code I need in several places, but I don't understand that, and so wouldn't be able to add my own magic touch.
    Please help,
    Thanks,
    ttttt
    http://openoffice.org/- Microsoft Office without the Microsoft.
    [home page][forum]
    Versatile, free software

  • #2
    if your db is MySQL
    you can use the built in function mysql_real_escape_string() to avoid any injections that way.
    http://us4.php.net/manual/en/functio...ape-string.php

    you can also use a different MySQL user that only has access to reading the user table. Thus they couldn't really inject anything.
    God helps those who help others.

    Comment

    Working...
    X