How to - Make a Guest book?

Does anyone know how to make a guest book; is it a service or HTML? I just want to get some feedback from my visitors and make the site a little more interactive. Also could someone show me the code to make a "voting poll"? <br />
<br />
Thx for you help,<br />
<br />
-Joe<!--content-->A guestbook and a voting poll will be handled by a script on the server. You can use php or perl for both of those. There is no code to show you for a voting poll, it would make no sense to you unless you understand how to program/write scripts.<br />
<br />
Here is a section of a script I wrote in Perl for rating an image (pretty much the same as a voting poll):<br />
<br />
<br />
sub postrate {<br />
return() if ($_[0] == '' || (! $IN{'id'} ) || (! $IN{'gallery'}));<br />
if (!(-e ">$gallerydata/$IN{'id'}_rating.cgi")) {<br />
open (FILE,"$gallerydata/$IN{'id'}_rating.cgi");<br />
print FILE "0\[\]0\[\]0";<br />
close(FILE);<br />
}<br />
open (FILE,"$gallerydata/$IN{'id'}_rating.cgi");<br />
my $DATA=<FILE>;<br />
close(FILE);<br />
my($votes,$sum,$avg)= split(/\[\]/,$DATA);<br />
$votes++;<br />
$sum+=$_[0];<br />
$avg=($sum/$votes);<br />
my($int,$dec) = split(/\./,$avg);<br />
$dec = substr($dec,0,2);<br />
$dec = 0 if $dec < 1;<br />
$avg = $int . '.' . $dec;<br />
open (FILE,">$gallerydata/$IN{'id'}_rating.cgi");<br />
print FILE "$votes\[\]$sum\[\]$avg";<br />
close(FILE);<br />
}<br />
<br />
<br />
thats gonna look like Greek to most people.<br />
<br />
There are plenty of free scripts to use on your website from places like <!-- w --><a class="postlink" href="http://www.hotscripts.com">www.hotscripts.com</a><!-- w --> just decide what type of script you want, php or perl or something else, then look for a guestbook or voting poll or whatever else you might want to add to your website.<!--content-->Again - Good quick responce. I have a little knowledge about editing script, as I've used a few free ones on my site from time to time.<br />
<br />
Thx,<br />
<br />
-Joe<!--content-->goto <!-- w --><a class="postlink" href="http://www.proxy2.de">www.proxy2.de</a><!-- w --> u need a host with php and mysql support Download <!--more--> the advanced guestbook one and upload it through ftp and then read the read me it will tell u how to install or goto <!-- m --><a class="postlink" href="http://members.lycos.co.uk/blazedchaos/guestbook/">http://members.lycos.co.uk/blazedchaos/guestbook/</a><!-- m --> its what the thing will look like<!--content-->
 
Back
Top