Graphics Programs Reference
In-Depth Information
Next, you'll add the Log In User server behavior to the page, which will verify the
submitted username and password.
To add server behaviors to the login.php page:
1. Select the Login button in the form.
2. In the Data category of the Insert panel, click the User Authentication button
arrow , and then click Log In User . The Log In User dialog box opens.
3. Click the Validate using connection button, and then click nbf_db_connect .
4. Click the Table button, and then click admin .
5. Click the Username column button, and then click username .
6. Click the Password column button, and then click password .
7. Click the Browse button next to the If login succeeds, go to box, click the
database.php page in the Select File dialog box, and then click the OK button.
This sets the database.php page to display in the browser window if the submit-
ted username and password are listed in the database.
8. Click the Browse button next to the If login fails, go to box, click the
access_denied.html page in the Select File dialog box, and then click the OK but-
ton. This sets the access_denied.html page to display in the browser window if the
submitted username and password are not listed in the database. See Figure 9-19.
Figure 9-19
Log In User dialog box
9. Click the OK button. The Log In User server behavior is added to the page.
10. Save the page, and then upload the page to your remote server.
You'll add a meta refresh tag to the access_denied.html page, which tells the browser
to automatically refresh the page (by reloading the current page or going to a differ-
ent page) after a certain amount of time. You'll also add text to indicate that access was
denied to that user.
 
Search WWH ::




Custom Search