Re: Form - response required?
by "Radhika Parthasarathy" <radhika(at)elity.com>
|
Date: |
Thu, 17 Aug 2000 09:24:40 -0400 |
To: |
"Karen & Rob Pickel" <pegleg(at)rapidnet.com>, <hwg-basics(at)hwg.org> |
References: |
rapidnet |
|
todo: View
Thread,
Original
|
|
Javascript's the way to go for this one.
In the onsubmit event-handler for the form, check whether the required
fields have any value in them (document.formname.fieldname.value == ""). If
not, display a message with the alert statement and return false. This will
stop the form from submitting. If all required fields contain valid values,
then return true which will submit the form.
Good luck!
Radhika.
----- Original Message -----
From: "Karen & Rob Pickel" <pegleg(at)rapidnet.com>
To: <hwg-basics(at)hwg.org>
Sent: Wednesday, August 16, 2000 5:11 PM
Subject: Form - response required?
> Hi all!
>
> I have a form all put together but now I need some
> way to assure that they enter certain fields (such as
> name/address) How can I go about this? I just need
> something simple like a pop-up box saying "Please
> enter your name" or "Please enter your address" when
> they don't remember.
>
> I know it can't be all that hard, but it eludes me....... sigh
>
> Thanks to all you smart people out there!!
> Take care,
> Karen Pickel
> ( pegleg(at)rapidnet.com )
>
>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA