Graphics Programs Reference
In-Depth Information
Review Assignments
Practice the skills
you learned in
the tutorial.
Data File needed for the Review Assignments: anti_db.sql or anti_db.mdb
Dan and Cat want to provide users with a way to give feedback and to make requests. You
will add a new section to the home page asking users to provide input and you will create
a short form so users can provide their name, e-mail address, and comments. The informa-
tion from the form will be collected in a database. Below the form, you will create an area
that displays the comments users have submitted but not their name or e-mail address.
If you are using MySQL and PHP on a Linux server, complete the following steps:
1. Open the antifest site you modifi ed in Tutorial 8, and then open the index.html page
in Design view.
2. Add a new line after the page content, type feedback , apply the h2 tag, press the
Enter key, type We would love to hear your thoughts about the fest and any ideas
that you have regarding future festivals. If you have anything to contribute, simply
fi ll out and submit the following form. Together we can rock the world. , and then
press the Enter key.
3. Insert a form in the page, enter commententry as the form name, and then insert a
table with 5 rows, 2 columns, 100 percent table width, 0 border thickness, 0 cell
padding, 5 cell spacing, and no header in the form.
4. Align the left column to the Right and Top, and then, in the upper-left cell, type fi rst
name: (including the colon).
5. With the insertion point in the upper-right cell of the table, insert a Spry Validation
Text Field widget, close the Input Tag Accessibility Attributes dialog box, and then
select the Spry TextField widget. In the Property inspector, enter fi rst_name_validate
in the Spry TextField box and check the Required check box, if necessary. In the
Document window, click inside the text fi eld to display the text fi eld properties, and
then, in the Property inspector, enter fi rst_name in the TextField box and set Max
chars to 80.
6. Repeat Steps 4 and 5 to enter the following labels and text fi elds in the second and
third rows of the table:
Label
Spry TextField name
TextField name
last name:
lastnamevalidate
last_name
email address:
emailvalidate (select Email Address as Type)
email_address
7. In the fi rst cell of the fourth row, type comments: , and then in the second cell of the
fourth row, insert a Spry Validation Textarea and close the Input Tag Accessibility
Attributes dialog box. In the Document window, select the Spry Textarea widget, and
then, in the Property inspector, type commentvalidation as the Spry Textarea name
and check the Required check box, if necessary. In the Document window, click
inside the text area to select it, and then, in the Property inspector, enter comments
in the TextField box and set Num lines to 10 .
8. In the second cell of the fi fth row, insert a Submit button, and then save the page.
9. Connect to an existing database or create the database on your remote server using
the anti_db.sql fi le located in the Tutorial.09\Review folder included with your Data
Files. ( Hint : Obtain the information you need from your instructor or technical sup-
port person.)
10. In the Server Behaviors panel, click the document type link in Step 2, select PHP as
the document type, and then click the OK button. Click the Update button when
prompted to update links.
 
Search WWH ::




Custom Search