Results 1 to 4 of 4

Thread: How to require fields to be filled in..???

  1. #1
    Join Date
    Apr 2008

    How to require fields to be filled in..???

    I really new to this...
    I am practicing html and I dont know how to work with this,
    How can I require that fields be filled in, or filled in correctly?
    example: the field must be filled by email add ,state , phone number

  2. #2
    What? Mike Empuria's Avatar
    Join Date
    Mar 2006
    Empuriabrava, Spain
    To require that fields are filled in or filled in correctly you need to use some code; Javascript or PHP are the most commonly used.

  3. #3
    Registered fatnewt's Avatar
    Join Date
    Nov 2003
    Ottawa, Canada
    True story. You can't do it with HTML alone.

    Usually it's done by the same tool that ultimately processes the form, but if your form goes off-site to a hosted service, you're probably stuck using JavaScript to validate the form before you send.

    Here's one example of JavaScript validation:

  4. #4
    Junior Registered
    Join Date
    Feb 2008
    Last edited by cothse; 09-22-2012 at 12:32 AM.

Similar Threads

  1. Searching Delimited Fields in MySQL
    By mobilebadboy in forum Website Programming & Databases
    Replies: 13
    Last Post: 12-20-2007, 09:28 PM
  2. Replies: 0
    Last Post: 06-23-2006, 08:18 PM


Posting Permissions

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