Results 1 to 2 of 2

Thread: PHP or JS or Both validation

  1. #1
    Join Date
    Dec 2010
    Posts
    26

    Smile PHP or JS or Both validation

    I recently created a Registration form for my website, I validated it using JavaScript and it works fine. Was thinking if PHP validation could work better or both. Please suggest.

  2. #2
    Join Date
    Sep 2008
    Posts
    899
    I've got my first registration project coming up within the next couple of weeks. Writing the actual registration code coupled with an automatic e-mail, subsequent comprehensive registration-and-payment-form page, and numerous insert and update scripts for my registered users' dashboard may take me a few days. At the moment, I'm still structuring the tables for a fairly complex site. According to everything I've learned over the last two years, both is best. JS for speed and client convenience only. Server-side validation for your (and your user's) protection. As I understand it, a monkey could get around js validation. I'm going to try to have the equivalent of three feet of titanium/high carbon tungsten steel alloy protecting my dbases. Actually my registered users will only be allowed to insert and update (via forms) to a "holding" dbase and I'm going to review all material for content before dumping it into the real McCoy myself.
    Last edited by djlebarron; 03 Jan 2011 at 10:23 AM.

Similar Threads

  1. PHP contact form validation code
    By kade119 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 26 Apr 2007, 03:50 AM
  2. PHP Form Validation ???
    By j4mes_bond25 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 25 May 2006, 05:17 AM

Posting Permissions

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