This is a discussion on "HTML form fields" within the Web Page Design section. This forum, and the thread "HTML form fields are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
HTML form fields
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
HTML form fields
Hi
I have a HTML form but I need the user to make sure sertain Fiels are filled in dose anyone know how I can make sure the required fields are filled in. Thanks |
|
|
|
||||
|
Re: HTML form fields
Well you can use Javascript (client-side - can be turned off) or PHP (server-side - requires a page reload but is safer).
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
||||
|
Re: HTML form fields
PHP is the better option as c010depunkk said, JavaScript can be turned off so there would be no checking.
With php you could check your POST variables to see if they are empty and if they are, display a message
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hiding / Showing form fields based on previous form input | John Alexander Hopper | PHP Forum | 1 | Mar 10th, 2008 11:30 |
| Help with form validation and required fields | tbathgate | JavaScript Forum | 5 | Feb 27th, 2008 22:01 |
| Form Fields | robukni | PHP Forum | 7 | Oct 10th, 2007 20:26 |
| Form fields hidden under images | dangergeek | Web Page Design | 5 | Sep 3rd, 2007 13:23 |
| Form fields Edit Mask | StanLevin | JavaScript Forum | 0 | Aug 20th, 2007 21:33 |