[ back to toc ]

cgi form and required fields

Date: 2002/04/08 15:42

Q:
Hello Peter,
How can I make fields within a mailform make required fields?
I am making a form in Adobe GoLive 5.
Thank you.
*NAME-DELETED*
A:
You have to do three things:

1. Write some HTML text near the field telling the user that the field is
required.

2. Write JavaScript into the page that checks that the required fields are
all filled in and tries to prevent the user to submit a page that has not
all required fields filled in.

3. On the server the CGI program has to check that the required fields are
filled.

Regards,
Peter
Q:
Hello Peter, thanx for your answer.
Can you give me the HTML code and Java Script or tell me where I can find
this on the internet.
Thank you again.
*NAME-DELETED*

A:
Go to www.javascript.com and on the bottom select "Forms and Data
Validation" script category.

Regards,
Peter

[ back to toc ]