Graphics Programs Reference
In-Depth Information
Creating New Pages
You need fi ve pages for the database-driven portion of the site. You will create all of these
pages now so that they are available when you need them. According to Gage's plan for
the database-driven portion of the site, you will create the following pages:
thankyou.html. A page thanking the user for his or her submission that appears when
the user submits the form in the contact.html page.
access_denied.html. A page informing the user that the wrong username or password
has been entered; this message appears when a user attempts to log in on the login.php
page with incorrect information or if a user attempts to access a password-protected page
without logging in. After a four-second delay, the user is returned to the login.php page.
database.php. A page showing an overview of the data stored in the database. After the
login.php page is created, users cannot access this page unless they log in.
database_details.php. A page showing the details of a selected record that appears
when a user clicks a record in the database.php page. After the login.php page is cre-
ated, users cannot access this page unless they log in.
login.php. A page in which a user enters his or her username and password and then
clicks the Login button. If the information is correct, the database.php page appears; if
the information is incorrect, the access_denied.html page appears.
Three of the pages you will create are PHP pages. You can create a PHP page by typ-
ing .php as the fi le extension when you name the page.
To create the pages for the database-driven portion of the NextBest
Fest site:
1. In the Files panel, duplicate the contact.html page. A new page named contact -
Copy.html appears at the bottom of the files list.
You can press the
Ctrl+D keys to duplicate
the selected page.
2. In the Files panel, rename the Copy of contact.html page as thankyou.html .
3. Open the thankyou.html page in Design view, and then edit the page title to
replace the word “Contact” with Thank you . The new page title appears.
4. Change the page heading to Thank You .
5. Delete all the content below the heading and above the footer, type Thank you
for submitting your information. (including the period) in the line below the
heading text, and then make sure the sentence is in the Paragraph format. See
Figure 9-2.
Search WWH ::




Custom Search