Graphics Programs Reference
In-Depth Information
11. In the index.php page, update the link from the home page navigation text to
index.php, and then save the page.
12. In the Server Behaviors panel, click the testing server link in Step 3, check the Testing
check box beside the antifest web server in the server list, then edit the server. In
the Advanced tab, select PHP MySQL as the server model in the Testing Server area,
click Save and click Save again.
13. In the Server Behaviors panel, add the Recordset behavior, type anti_record as the
name, click the Defi ne button next to the Connection box, click the New button,
type anti_connect as the connection name, type localhost or the database server
URL as the MySQL server, type your username and password, click the Select button
to display a list of databases, select anti_db in the list, click the OK button, click the
Done button, select anti_connect as the connection, click contact in the Tables list,
click the SELECT button, and then click the OK button. The Recordset behavior is
added to the page and appears in the Server Behaviors panel.
14. In the Server Behaviors panel, add the Insert Record behavior, submit values from
commententry, select anti_connect as the connection, click contact in the Insert
table list, click the Browse button, click the index.php page in the local root folder,
and then click the OK button in each dialog box. Save the page. The Insert Record
behavior is added to the page and appears in the Server Behaviors panel.
15. Upload the page to your remote server (include dependent fi les), preview the page
in a browser, and then close the browser.
16. Double-click the Recordset behavior in the Server Behaviors panel to open the
Recordset dialog box, click the Simple button, click the Selected option button
in the Columns section, click comments in the Columns box, and then click the
OKĀ button.
17. Place the pointer after the form area inside the content div, click the Dynamic Table
button in the Dynamic Data list in the Data category of the Insert panel, click the All
records option button, set the border to 0, set the cell padding to 3, and then click
the OK button. A dynamic table appears below the form in the page.
18. Select the heading text in the top row and format the text with the h2 tag.
19. Save the page, upload the index.php page to your remote server (include dependent
fi les), preview the page in a browser (updating the page and dependent fi les on the
testing server, if necessary), type a test entry in the form, and then click the Submit
button to submit the form. The comment you submitted appears below the form in
the page. ( Hint : If you are sharing a database with classmates, you might see addi-
tional comments displayed below the form. If you do not see your comment, refresh
the page.)
20. Submit the fi nished fi les to your instructor.
If you are using Access and ASP on a Windows server, complete the following steps:
1. Open the antifest site you modifi ed in Tutorial 8, and 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).
Search WWH ::




Custom Search