HomePHP Page 8 - Building a Quick and Easy Tag Board
doBoard() Function - PHP
Tag boards enable users to leave a short message on your site without having to go through the trouble of registering. From a development point of view, they are actually rather simple to develop. In this article we will create a quick and easy tag board for any web site. We will be taking advantage of the php and MySQL technologies.
The next function in our script is doBoard() which contains the HTML to format our tag board. Everything is reasonably basic and since knowledge of HTML is assumed, we won't go into to much detail on this. The code used in the doBoard function can be found below:
As you can see, we have named the frame “tag_box” and set the src (source) to board.php?do=Tags which is the function mentioned above. This as we know will display all the tags stored in our database.
Another area of this code we need to note is the form where users can submit their tags. More specifically we want to look at the following code: