Use Dreamweaver to complete the message system and dreamweaver message board
How to use Dreamweaver to create a user message system
1. Complete the home page (inde. php)
1. Create a database gbook
2. Create the data table required by the message system and add corresponding fields.
3. Create a site and set up server connections
1. Create a site
2. Set the server
4. Create index. php on the homepage of the message system.
Use Dreamweaver to set the corresponding content
5. Connect the database
Connect to the database.
6. php code for setting the current time
<? Php date_default_timezone_set ('Asia/Shanghai'); echo date ("Y-m-d h: I: s");?> (Mainly used to display the current time)
7. Create a record set
* When creating a record set, set passid = 0 to confirm that the Administrator has viewed the message.
8. Insert the corresponding record set into the table
9. Complete the index. php page.
Ii. Message page (book. php)
1. Complete the basic layout of the message page.
2. Three new hidden domains are created for data transmission.
IP address <? Php echo $ _ SERVER ['remote _ ADDR '];?>
Date <? Php date_default_timezone_set ('Asia/Shanghai'); echo date ("Y-m-d h: I: s");?>
Passid 0
3. To prevent some users from entering the information to send out the form, check the form.
4. Complete the book. php page.
3. Create a background Administrator Logon page
1. Complete the basic layout of the logon page
2. Use user logon in server Behavior
3. Complete the logon page.
4. Background Administrator System
1. Complete page design as required
2