(^646) Answers
increased by configuring it with an accesskeyattribute. Visually challenged
visitors using a screen reader will hear that a submit button has been encoun-
tered. Submit buttons automatically invoke the server-side processing config-
ured in the form tag.
An image button will also automatically invoke the server-side processing
configured for the form and can be more accessible if configured with the alt
and accesskeyattributes. Unless there is a very good reason or a very insis-
tent client, avoid the
- CGI (Common Gateway Interface) is a standard method for Web pages to request
special processing on the Web server, such as querying databases, sending e-mails,
or handling form data. CGI provides a standard way for a Web server to pass
a Web visitor request to a program or script stored on the server, receive a
response from the program or script, and send that response to the Web browser
for display. - Suggested solution:
<form method="post"
action="http://webdevfoundations.net/scripts/subscribe.asp" >
First Name:
Last Name:
E-mail:
- The server-side script developer and the Web page designer must work together to
get both parts of the form processing—the front-end Web page and the back-end
server-side script—working together. They need to communicate regarding the
method (get or post) to be used by the form, and the location of the server-side
script. Since the names of the form elements are often used by the server-side
script as variable names, the form element names are usually specified at this
time.
Review Questions
- d
- a
- c
- b
- b
- b
- a
- d
9. c - d
- maxlength
- name
- This technique should be avoided
because it presents an unprofes-
sional image and can be inconven-
ient for Web page visitors. Its