Tuesday, April 1, 2014

Create forum using php

1)Create table at phpmysql.Insert 3 rows: id,name and post


2)Open dreamweaver.file>new>php
3)You will used 3 types of server behavior here: insert record, recordset,repeat region
4)First insert form and type name and message. Put text field beside the name and message.Change the properties of the text field according to the name you insert at the database.name as name and message as post.
5)Then, insert submit button and change the button name to post.
6)Save it as forum.php.
7)Window>server behavior>insert record
8)Outside the form line, type comments from others

9)Go to window>Server behaviour>recordset

10)Go to binding panel and drag name and post under the comments from others. Then, highlite it and go to server behavior>repeat region.


Preview:







No comments:

Post a Comment