HTML form fields

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 15th, 2007, 18:37
Junior Member
Join Date: Oct 2007
Location: England
Age: 25
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote

  #2 (permalink)  
Old Oct 15th, 2007, 18:38
c010depunkk's Avatar
SuperMember

SuperMember
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to c010depunkk
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).
Reply With Quote
  #3 (permalink)  
Old Oct 15th, 2007, 21:58
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
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

PHP: Select all

if (empty($_POST['field'])
 {
     
$errmsg.="Please enter some data<br />";
     echo 
$message;
 } 
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 03:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43