SCRIPT F
<html>
<head>
<title>Welcome to UNF Comments Page</title>
</head>
<body>
<?php
//File:comment_form.html
//Displays a comment form.
?>
<form method="POST" action="comment.php">
The rest is the html code for text boxes, drop down boxes, radio buttons and closing the above tags.
<tr>
<td width="23%" height="23">Name: </td>
<td width="43%" height="23" colspan="2">
<input type="text" name="com_name"size="50"> </td> </tr>
<?php
echo”$message”;
?>
**********************************************************
SCRIPT V
<?php
//File:comment.php
//Validates and inserts data when the user types information into the comment_ form.html
if(!ereg("^[A-Za-z' -]{1,30}$",$com_name))
{
header(“Location:comment_form.html?message= Sorry you mistyped your name”);
exit();
}
then other error checking and insert into database.
?>
I hope I wrote enough of the code to answer my question.