Specifications

After the user types in his reply and clicks the Post button, he will be taken to the
store_new_post.php script. Sample output from this script is shown in Figure 29.9.
Building Practical PHP and MySQL Projects
P
ART V
738
FIGURE 29.9
The new post is now visible in the tree.
The new post is there in the figure, under Re: using gd? - Laura - 08:28 09/26/2000.
Other than that, this page looks like the regular index.php page.
Lets look at the code for store_new_post.php. It is shown in Listing 29.12.
LISTING 29.12 store_new_post.phpPuts the New Post in the Database
<?
include (“include_fns.php”);
if($id = store_new_post($HTTP_POST_VARS))
{
include (“index.php”);
}
else
{
$error = true;
include (“new_post.php”);
}
?>
35 7842 CH29 3/6/01 3:34 PM Page 738