1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Help with php code

Discussion in 'Programming & Webmastering' started by Morrison5891, May 1, 2013.

  1. Aquinus

    Aquinus Resident Wat-man

    Joined:
    Jan 28, 2012
    Messages:
    6,423 (6.44/day)
    Thanks Received:
    2,162
    Location:
    Concord, NH
    Very true. JQuery will work on more browsers than HTML5 will, that's for sure. :toast:
     
  2. BiggieShady

    BiggieShady

    Joined:
    Feb 8, 2012
    Messages:
    1,005 (1.02/day)
    Thanks Received:
    341
    Location:
    Zagreb, Croatia
    Example for what Aquinus said are username and email fields on the registration form.
    • On client side you should check if username is long enough, has only allowed characters and for email if it's right format.
    • On server side you should check if username or email already exist in the database users table.
    Some user registration forms may do all validation on server side, but none can do all validation on client side.
     
  3. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    14,944 (3.92/day)
    Thanks Received:
    11,735
    and also check on server side that it's long enough, has allowed characters etc. javascript is very easy to bypass
     
    Aquinus says thanks.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page