Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Computer Support > html for form question

Reply
Thread Tools

html for form question

 
 
Frank Thompson
Guest
Posts: n/a
 
      06-20-2009
On a form after the hidden recipient and value tags I have the
following html:

<input
name="subject" value="ecpoll" type="hidden">My real name is<input
name="realname" type="text"> My email is <input name="email"
type="text">

then I have some questions answered with yes and no buttons

After the questions I have this:

<input
style="font-weight: bold;" value="Send" type="submit"></big> <input
value="Clear" type="reset"> </big></p>
</form>

What can I add to prevent the send and submit being activated if the
name and email inputs are empty?

Frank
 
Reply With Quote
 
 
 
 
why?
Guest
Posts: n/a
 
      06-20-2009

On Sat, 20 Jun 2009 10:31:39 -0700 (PDT), Frank Thompson wrote:

>On a form after the hidden recipient and value tags I have the
>following html:
>
> <input
>name="subject" value="ecpoll" type="hidden">My real name is<input
>name="realname" type="text"> My email is <input name="email"
>type="text">
>
>then I have some questions answered with yes and no buttons
>
>After the questions I have this:
>
><input
>style="font-weight: bold;" value="Send" type="submit"></big> <input


Argh!!! inline styles.

>value="Clear" type="reset"> </big></p>
></form>
>
>What can I add to prevent the send and submit being activated if the
>name and email inputs are empty?


Isolated code is generally useless, question didn't need the code.

0) www.google.com html form validation

Results 1 - 10 of about 17,000,000 for
html form validation
.. (0.24 seconds)

Results 1 - 10 of about 594,000 for
html javascript form validation
.. (0.23 seconds)

Results 1 - 10 of about 326,000 for
form validation tutorial
.. (0.25 seconds)

1) Nothing in HTML.
2) Don't ask in ng alt.html, look for existing answers.
3) Client side JavaScript.
4) Server side script of your choice.

>Frank


Me
 
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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML File Upload using enctype=multipart/form-data in form? Matt Java 8 05-26-2012 07:40 AM
How to retrieve form field value if form is EncType=multipart/form-dataForm? Li Zhang ASP .Net 4 02-27-2009 01:23 AM
HTML form inside a ASP.NET form: CMS Mark ASP .Net 2 03-15-2006 07:38 PM
<form>...</form> - how to supress blank space after </form> in IE? rob c Javascript 4 12-30-2005 06:10 PM
submit form data in multiple buttons on a html form Matt HTML 0 06-26-2004 08:04 PM



Advertisments