Log in

View Full Version : Guestbook



IrishGirl
08-14-2010, 07:02 AM
Hi -

I am having so many difficulties setting up a Guestbook for a website. So far, I have
<pre>
<form action="/cgi-bin/guestbook" method="post">

<tr>
<td class="guestbooksign" colspan="2">Sign Guestbook!</td>
</tr>
<tr>
<th><span class="guestbooksign">Name:</span></th><td><input type="text" name="NAME" maxlength="40" /></td>
</tr>
<tr>
<th><span class="guestbooksign">Email:</span></th><td><input type="text" name="FROM" maxlength="40" /></td>
</tr>
<tr>
<th><span class="guestbooksign">Message:</span></th><td><textarea name="COMMENTS" cols="60" rows="4"></textarea></td>
</tr>

<tr>
<th colspan="2">
<input type="submit" value="Add Your Message To Guestbook" size="40" />
</th></tr>
</form>
</pre>

and i am completely stuck here. It keeps giving me an error message stating I have not filled out all the required fields and that I need to go back and do that.
Does anyone have a basic Guestbook script along with the coding to have a member's entry show up on another page?

Help!

Thank you...:(

traq
08-14-2010, 08:22 PM
there's no way to know what the problem is from the info you posted. You would need to post the contents of your actual script (/cgi-bin/guestbook), not the html form.

djr33
08-15-2010, 04:40 AM
Also, this has been posted in the PHP section. Do you want to replace this with a PHP script, or do you want help with CGI? That question probably belongs in the "other" section, but honestly I'm not sure if many people on this website know how to work with CGI. There will be plenty of help for PHP, though.

What you have posted now is just HTML, and that is very simple compared to the serverside script that processes the data after the form is submitted.