View Full Version : Add information to "simple guestbook"
cbrownridge
December 9th, 2005, 12:45 AM
I am very new to HTML so I appreciate any help I can get on this.
I have succesfully added the "simple guestbook" to my home page
www.xxxxxxxxx.org
and succesfully added "check boxes" for requesting information via email but I cannot get the checked boxes information to appear in my guestbook, just the name, email and comments appear.
I assume this has to do with the guestbook default template ot the cgi tag.
Is there an edit I can make to the guestbox default template that will give me a simple yes or no for my "checkboxes"?
Thank you
Brandon
December 9th, 2005, 01:56 PM
Hi Cbrownridge,
You clicked "Edit Guestbook Template" on top.
This is the HTML and we can help with simple edits.
Please 1) post your html and 2) be as specific as possible.
Brandon
cbrownridge
December 9th, 2005, 02:11 PM
I think I have the HTML code right but need to ammend the cgi script to dislpay the value of the checkboxes.
HTML code is
<B>Please Sign our Guestbook</B>
<form action="/xxxxxxxx/guestbook.cgi" target=guestwindow>
<input type="hidden" name="user" value="xxxxxxxxxxxxx">
<input type="hidden" name="action" value="addguest">
<input type="hidden" name="basehref" value="http://xxxxxxxxxxx.org">
<input type="hidden" name="template" value="default">
Name: <input type="text" name="name"><br>
Email : <input type="text" name="email"><br>
Comments: <textarea name="comments"></textarea><br><br>
Yes, I would like to receive<br> your quarterly newsletter <INPUT TYPE=CHECKBOX NAME="newsletter" value="yesnl" checked><br><br>
Yes, I would like to be notified <br> of volunteer opportunities<INPUT TYPE=CHECKBOX NAME="constructlist" value="yesvo" checked><br><br>
<input type="submit" value="Sign Guestbook">
</form>
I have used the simple guestbook template from your site, have omiited the URL input and want to add the check boxes so we know if the veiwers would like to recieve newsletters and schedules via email.
From doing some research I think I need to fix the cgi script that will display the value of the check boxes in my guestbook. I looked in my publichtml/bin and found several cgi, none that show as guestbook, and of course I cannot edit them.
I truly appreciate your help in this matter and would also like to add the thanks and appreciation from our entire Habitat for Humanity affilaite in hosting this website for us.
Craig Brownridge
12Wonder
December 9th, 2005, 02:36 PM
The cgi script itself would need to be modified to process your additional checkbox variables. However this cgi script is in server root, not your account, and is shared by other accounts on the server, so it cannot be modified.
Anne
cbrownridge
December 9th, 2005, 03:11 PM
Can I make a seperate cgi script and upload it to my bin that would allow all of the information to be displayed?
If so is can you direct me to a copy of the current cgi script that I may modify for our website use or should I go about creating a script from scratch. I undertsand that I would have to redirect my form to that cgi script.
Thank you again for your time and information
Craig Brownridge
12Wonder
December 9th, 2005, 03:50 PM
No we cannot provide a copy of the current cgi script.
If you want a script that does something different than what is already provided, yes you can setup your own cgi script in your cgi-bin, but only IF you know how to code a safe, hijack-proof script. You might want to look at hotscripts.com. However keep in mind that NOT all scripts at hotscripts.com are safe. Many are written by amateurs and are badly coded and have more security holes than swiss cheese (even many that claim to be "safe").
As in our Terms of Service, you are responsible for making sure that any third-party scripts you use are safe. Use of insecure scripts can be grounds for suspension or even termination.
Anne
cbrownridge
December 9th, 2005, 10:12 PM
Thank you for the information.
Since I am not very proificient at creating or using scripts and certainly do not want to upload anything that can easily be hacked into I have opted to use your built in cgiemail applications to do the same thing I was trying to do with the guest book. The guide that you provide with the cgiemail application in cpanel walked me right through the whole proccess, with a little trial and error on setting the action path I was able to succesfully create my form and have it automatically send that information to my desktop.
Thank you again for replying so fast to my previous post. :)
Craig Brownridge
12Wonder
December 9th, 2005, 10:30 PM
Glad it worked out for you :)
Anne
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.