Results 1 to 3 of 3

Thread: Guestbook

  1. #1
    Join Date
    Aug 2010
    Location
    New Westminster, Canada
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Guestbook

    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...

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    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.

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •