473,236 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,236 software developers and data experts.

Validating Html form

Hi, i just want to know do u validate a form.

Ok, i just want to make sure that the user doesnt skip a textbox(fname), don't enter text in lets say 'zipCode' textbox. I am not trying to validate data against xlm file(am not onthat level yet!).

Expand|Select|Wrap|Line Numbers
  1. <p>
  2.             First Name&nbsp;&nbsp; &nbsp; 
  3.             <input id="firstName" style="WIDTH: 233px; HEIGHT: 23px" type="text" size="31" name="firstName" />  </p>
  4.  
  5. <input style="WIDTH: 92px; HEIGHT: 22px" type="text" size="12" name="zip" />
  6.  
Oct 23 '07 #1
1 1195
numberwhun
3,509 Expert Mod 2GB
Hi, i just want to know do u validate a form.

Ok, i just want to make sure that the user doesnt skip a textbox(fname), don't enter text in lets say 'zipCode' textbox. I am not trying to validate data against xlm file(am not onthat level yet!).

Expand|Select|Wrap|Line Numbers
  1. <p>
  2.             First Name&nbsp;&nbsp; &nbsp; 
  3.             <input id="firstName" style="WIDTH: 233px; HEIGHT: 23px" type="text" size="31" name="firstName" />  </p>
  4.  
  5. <input style="WIDTH: 92px; HEIGHT: 22px" type="text" size="12" name="zip" />
  6.  
Unfortunately there is not way to do this with HTML itself. What you are going to have to do is verify, using whatever script this form is being submitted to, that each required field is not null. You can do this with Perl, PHP, etc.

Regards,

Jeff
Oct 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: The Plankmeister | last post by:
Hi... What's the best method of validating input characters? I would like to prevent users submitting exotic characters (such as those acquired on Windows Systems by pressing ALT+) and thought...
3
by: Mark | last post by:
Hi, Im trying to validate a form, all the validating works apart from one field. This particular field must consist of the first 2 characters as letters, & the following 5 as numbers. And if it...
0
by: Gary Shell | last post by:
I am experiencing some strange behavior between a UserControl's validating event and a treeview control. Initially, I thought it was related to an issue in the Knowledgebase article 810852...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.