Form Validation -- Help!

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am not sure if this is the right place for this or not. I have been
working on this form and I cannot seem to get the reqired text behavior
to work correctly.

It is a request for samples. I want some of the info (name,address,
etc) to be required before the form will even submit.

I have assigned a behavior to the form tag to require certain info from
potential customer to be filled out. To cover all bases, I have also
specified that the required fields be filled before it will send.
The code is below:

(note: some info has been changed to protect the innocent)

<form action="/cgi-bin/" method="post"
name="SampleRequest" id="SampleRequest"
,'','R','08)Zip','','R','09)Phone','','R','12)Email','','R') ;return
    <INPUT TYPE=HIDDEN NAME="subject" VALUE="Request For Samples">
    <INPUT TYPE=HIDDEN NAME="redirect"
VALUE="http://www.redirect.htm ">
        <INPUT TYPE=HIDDEN NAME="required" VALUE="Name,Company
Name,Address,City, State,Zip,Telephone,Email">

This seems to work in every browser except IE 6 PC, naturally, it is
the browser used by nearly all of the company's customers.

If you hit the submit button in Firefox (or safari or opera)  without
typing something in the required fields, you get this pop up window :
The following error(s) occurred:
- 01)Name is required.
- 02)Title is required.
- 04)Company Name is required.
- 05)Address is required.
- 06)City is required.
- 07)State is required.
- 08)Zip is required.
- 09)Phone is required.
- 12)Email is required.

Is there something special you have to do to get this to work in IE 6?

What am I not doing?
The area that is "onSubmit" was done in DWMX, the other "required"
stuff I put in by hand.
Is there something out of place?

Suggestions? Any one?
The actual form in question is here, in a hidden place:

Thanks in advance,

Re: Form Validation -- Help!

On Wed, 16 Feb 2005 10:36:33 -0800, Melissa wrote:

Quoted text here. Click to load it

Try comp.lang.javascript

    JDS | jeffrey@example.invalid
  DJMBS | /

Site Timeline