HTML and CSS Reference
In-Depth Information
Step 2: Create a chat form
Create the index.php page and the markup that users will see. The markup will contain two
forms that will be visible or not, depending on the status of the user. In this step you'll cre-
ate the list of chat messages and a form for adding new ones; in the next step you'll create
a form for logging in. The following listing shows the PHP source for the form shown in
figure 4.1 . It's a simple HTML template that makes a couple of function calls to render the
main content, and it contains a form to allow new chat messages to be added.
Listing 4.1. index.php body content
You'll also need to set up basic links in the < head> section of index.php. The required
code is shown in the next listing.
 
Search WWH ::




Custom Search