In the last article, we have learned how to make pages for leaving messages. Despite them we have many different dynamic web pages to learn. For example, you may need to register if you want to leave massage in some web pages. When you use an email, you need to register at first. But how are these registers pages made? Yeah, we will learn how to make pages in this article and the next article. Of course, firstly you need to build a new web page in dreamweaver8.0. Ready? This may have some difficulties for you, but don’t be scared. Take care and it will be easy. OK. Now, let us begin.
|
Step1:
Open the new web page you have built just now. Save it as zhc.asp. Set focus on the right position, and select the [insert]–[table] command, inserting a table with eight rows and two columns. Set the align as center, cell pad as 5.
Step2:
Select the first row and merge the cell. Then you need to input “register”into the merged cell.
Step3:
Set focus on other cells and put in the appropriate text.
Step4:
Set focus on the second row and the second column. Put a text area into it. You can name the text area as user name and set the pixel width as 20, style as single line. You must be familiar at this because we have learned it in the past article.
Step5:
By the same step as step4 you can put other text area in the web page. But pay attention to their properties, such as name, pixel width.
Step6:
Then select the eighth row and merge the cell. Then select the [insert]–[form]–[button] command, inserting two buttons. The final effect is like this:
|
Step7:
Select the form, open the behavior inspector. Click the
button; select the validate form item in the menu. Open the validate form dialog box. Set the value as required and acceptable as anything for the username form, password form and password1 form. Set the value as required and acceptable as email address for email form. Set the value as required and acceptable as number. Click OK and add the behaviors.
|
Step8:
Click the
button in the sever behavior inspector and select the insert record command. Open the insert record dialog box, select zd in the connection list box. Put chg.asp into the “after inserting, go to” textbox.
|
Step9:
Click the
button in the sever behavior inspector and select the [user authentication]—[check new user name] command, and open the check new user name dialog box. Fill in it as the following picture:
|
Step10:
Save it. Preview in the explorer.
Now the register page is ok. We will learn how to make pages for successful and unsuccessful register.
For help, advice, tips and tricks, challenges, feel free to visit our
or Submit your good resource to share.
Reminder: Unless stated otherwise, all resources published on this site are NOT for commercial use. To use any resource from this site for commercial purposes, please contact the author.

