www.webdeveloper.com
Results 1 to 2 of 2

Thread: Form javascript verify before php upload to mysql

  1. #1
    Join Date
    Mar 2013
    Location
    Winnipeg, Canada
    Posts
    12

    Form javascript verify before php upload to mysql

    I have a form that I have to upload to a mysql database. I need to use javascript to verity a name field and a email field before I can upload to the database. How am I able to do that?

    Vince

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,337
    that's probably best answered in the JavaScript forum here. However, just in case you don't know, I'll point out that JavaScript is easily bypassed by a malicious user, so don't let client-side (e.g. JavaScript) validation make you think you no longer need server-side (e.g. PHP) validation for any inputs which could be problematic.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles