Find the answer to your Linux question:
Results 1 to 4 of 4
Hi , I'm looking for good guidance on guestbook for html site. Any idea ,how to place a guestbook on a website.. So far, I have created the form(with username,email-id ...
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Question How to create Guest Book ?

    Hi ,
    I'm looking for good guidance on guestbook for html site. Any idea ,how to place a guestbook on a website..

    So far, I have created the form(with username,email-id and comments) and able to add comments and these comments are placed in file called .guest.txt

    what should i do with this file now? How to display these comments on web page?
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  2. #2
    Linux Newbie danielsmw's Avatar
    Join Date
    Nov 2006
    Location
    Clemson, SC / Charleston, SC
    Posts
    110
    If you have perl available to you on your web server, you could always create a very simple cgi script. Basically, your script could just read in the info from the local guestbook file you have and print it to HTML, if you know what I mean. Do you have any experience with perl? You really don't need much to make a simple program like this...

    Perl CGI Tutorial Overview <-- This is a pretty good perl CGI tutorial. You may find it handy. Let me know if you need any perl help, or if you need guidance writing your cgi script.

    Of course, there's more than one way to do it. You could write all kinds of different scripts to accomplish this goal. If you have successfully been able to write guest entries to a file, you may even find a way (the <iframe> tag, maybe?) to directly embed the file in HTML.

    Either way, good luck.
    Registered Linux User: #479567
    Asking a question? Read this page first.
    Now... sudo make me a sandwich.
    ratiocinativeroot.blogspot.com

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    If you have successfully been able to write guest entries to a file, you may even find a way (the <iframe> tag, maybe?) to directly embed the file in HTML.
    Yes...the cgi-script is provided the web hosting company.All entries are written into a text file.I think I need to check out how to embed that text file into my HTML pages ...thanks for your reply and CGI - perl link
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  4. #4
    Linux Newbie danielsmw's Avatar
    Join Date
    Nov 2006
    Location
    Clemson, SC / Charleston, SC
    Posts
    110
    Besides that <iframe> tag, which may or may not work, you could probably just insert a minimal amount of PHP into your html to read and print out the text file.
    Registered Linux User: #479567
    Asking a question? Read this page first.
    Now... sudo make me a sandwich.
    ratiocinativeroot.blogspot.com

Posting Permissions

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