Log In System: DWMX 2004

The registration page

Insert another form object and name it registration. Click inside your form and insesrt a table with 2 columns and 5 rows. Again, make sure that the names of the fields for each text field object match the fields in the database. The name of my text field next to "First Name:" is firstname in the database, so it is also the name of the text field. I also changed the button label to "Register"

register form

We will now add a hidden field. You can put it anywhere within the form. I put it in the cell to the left of the register button. Give this hidden field a name of userGroup (just like the field in our database) and a value of member. We will only allow the administrator of the database to change member access to admin. Everyone is automatically given member status when they register.

Add the insert record server behavior

Select the register button and go to the Server Behaviors and choose Insert Record. Dreamweaver MX does a pretty good job of filling out the dialog box for you. Check the details after indicating the connection you want to use, send the user to the log in page after the record is inserted so that they can immediately log in and enter the members only section of the site.

Insert record dialog box

 

We're almost there. Now we will validate the username and add content to our taken page-->