SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Any Ans Pls !

  1. #1
    SitePoint Member
    Join Date
    Oct 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Any Ans Pls !

    Is possible to validate html form fields in php on client side ?

  2. #2
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,014
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    No. In any case any user submitted data must ALWAYS be validated and sanitized server side, especially before letting it anywhere near a database
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  3. #3
    SitePoint Member
    Join Date
    Oct 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile thanks

    Quote Originally Posted by SpacePhoenix View Post
    No. In any case any user submitted data must ALWAYS be validated and sanitized server side, especially before letting it anywhere near a database

  4. #4
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    930
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    On the client side the only commonly available language is javascript so you can do client side validation in javascript. But remember that it never replaces server side validation, it can only complement it for the ease of use so that the user can have immediate feedback without waiting for connection to the server.

  5. #5
    SitePoint Member
    Join Date
    Oct 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thanks.

    Now i trying to learn php.. thank you for the response !


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •