I just begin to learn PHP and would like to test my learning with a PHP Guestbook, But I have a question here: I have a PHP guestbook that is occasional hit with spam comments. Thus, I am setting up a question that you must answer to post your comments.
The input page is: input.htm and the output is: output.php.
Here is the portion of code in the form in input.htm(note the portion in bold):
Code: Select all
<form name="Entry" method="post" action="output.php">
<h2 align="center"><strong><font face="Georgia, Times New Roman, Times, serif">Hearts At Home Guestbook</font></strong></h2>
<p></p>
<p><strong><font face="Georgia, Times New Roman, Times, serif">Sign Guest Book</font></strong></p>
<h2><textarea name="comment" rows="11" cols="74"></textarea></h2>
<p><strong>Name:</strong></p>
<input type='text' name='name' value=''size='24' border='0'>
<li>Is fire hot or cold?:</li>
<input type='text' name='question' value='' size='24' border='0'>
<!--mark_town--><!--mark_mail-->
<p></p>
<input type="submit" name="send" value="Send to Guest Book" border="0">
<input type="reset" name="reset" value="Reset" border="0">
<input type="hidden" name="new_entry" value="true">
<input type="hidden" name="localDate">
</form>