Tutorial 6 Test e-Commerce
Terms in this set (42)
Common Gateway Interface (CGI script)
The earliest and most common server-based program language. It is written in a program called Perl.
Specify the code to create a form with the name registration.
Specify the code to create a field set with the id contactInfo and the legend Contact Information.
What are two ways of associating a field label with a control element?
Using "for=" or by nesting the control element within the label.
Specify the code to create a field label with the text Phone that is associated with an input box containing the phone field.
<input type="text" name="phone"/>
What attribute would you add to the Phone input box to allow no more than 10 characters to be entered?
Specify the code to create an input box named subscribe with a default value of Yes.
<input type="text" name="subscribe" value="yes"/>
When a form is submitted to the server how does the program receive the data and what does each mean?
When a form is submitted to the server, the server program receives the data in name/value pairs in which the name or id of each field is paired with whatever field value is entered into the corresponding control element. The program processes the data according to each name/value pair.
Specify the code to create two option buttons for the Computer field with the values PC and Macintosh.
<input type="radio" name="Computer" value="PC"/>
<input type="radio" name="Computer" value="Macintosh"/>
Specify the code to create a selection list for the State field with possibly values of California, Nevada, Oregon, and Washington.
<select name="state" id="state">
What attribute would you add to make Oregon the default value for the State field?
What attribute would you add to display all of the possible field values in the selection list?
Specify the code to create a checkbox and a label for the Computer field. The text of the label should be "I use a PC" and the value of the check box should be Yes.
<label for="Computer">I use a PC</label>
<input type="checkbox" name="Computer" id="Computer" value="yes"/>
Specify the code to create a text area box the Memo field that displays 10 lines of text, each of which displays up to 40 characters.
<textarea name="Memo" id="Memo" rows="10" cols="4-"></textarea>
Specify the code to create a submit button with the text Send Form.
<input type="submit" value="Send Form"/>
Specify the code to create a reset button with the text Cancel Form.
<input type="reset" value="Cancel Form"/>
Specify the code to create an image field named Sites displaying the graphic file sites.gif.
<input type="image" src="sites.gif" name="Sites" id="Sites"/>
Specify the code to create a hidden field named Subject with the field value Form Responses.
<input type="hidden" name="Subject" id="Subject" value="Form Responses"/>
You need your form to work with a CGI script located at http://www.j_davis.com/cgi-bin/post-querty. The Web server uses the get method. Specify the code for the form element.
<form action="http://www.j_davis.com/cgi-bin/post-querty" method="get"></form>
You want to use the mailto action to send your form to the e-mail address walker@j_davis.com. Assume that the message is sent as plain text. Specify the code for the form element.
Created to gather information. A survey, contact info, merchandise order, etc.
Pieces of information for a form are stored in this.
The name for information entered into a field.
The info from a submitted form is received as this. The name or id of each field is being paired with info that is submitted.
The type of input feature that the user will use to submit data. There are many options for creating input for a form.
For text and numerical entries.
For long lists of options, usually appearing in a drop-down list box.
Also called option buttons, to select a single option from a predefined list.
To specify an item as either present or absent.
To organize form elements.
For extended entries that can include several lines of text.
That can be clicked to start processing the form.
Requires input to be in email format.
Requires input to be in http:// format.
Requires a number input.
Uses a slider bar to select a number.
Adds rounded edges to the search box (point of?).
Requires a color code.
A text box in which the characters typed by the user are displayed as bullets or asterisks.
Labels a collection of radio buttons that belong together using a <fieldset> and <legend>. This is an easy way to display options to a customer in an organized way.
Submit and Reset/Cancel Buttons
Used to submit form for processing or resetting the form back to original format.
YOU MIGHT ALSO LIKE...
Tutorial 6: Forms
Course Mastery Lesson 6 - Part B
Chapter 6 ~ Web Forms
OTHER SETS BY THIS CREATOR
GEOL 101L Midterm
HIST 127 Final
COMM 130 Quiz 1
Ad Exam 2