in reply to CGI not accepted by server.

Hmm... In order to have a counter or guestbook work, you need to be able to modify a file on a server somewhere to remember what has already been entered. Javascript cannot do this.

In both of the cases offered by Nesh, this was not done through javascript. In the first case, it was done through email, and in the second, through a CGI script. These are the actions that are taken when the form is submitted (hint- check the action element of the form tag). The javascript just does input validation before you submit.

It's easy to get a counter; it just has to be hosted on a machine which allows CGI scripts. such counters are freely available on the web, such as here

The only way for you to get a guestbook working is to either find an email based guestbook system and run a cron job or something that updates the guestbook when you get new mail, update the guestbook by hand yourself when you get the email, or find someone else to host your guestbook on a machine which hosts guestbooks. I haven't heard of such a thing, probably because guestbooks require a lot more resources than a counter, and people want to have more control over how they work.

Replies are listed 'Best First'.
RE: Re: CGI not accepted by server.
by anmaco (Novice) on Jun 07, 2000 at 03:10 UTC
    Thanks. I have decided against a counter - nobody wants to know that only 15 people have visited my site in the last 2,000,000 years. I have found a server at 'iVillage' which I can use with CGI. I mainly wrote these scripts as a learning process to get me into Perl. Make you mad though - all that work - then they don't want it!!!! Thanks to all for input!
RE: Re: CGI not accepted by server.
by Saganaga (Sexton) on Jun 07, 2000 at 18:47 UTC
    Actually, there are quite a few places that offer remotely hosted guestbooks. My dad's internet service provider doesn't allow cgi scripts in their web space, so he uses a guestbook at htmlgear. There are a bunch of other remotely-hosted guestbook providers listed at the cgi-resources site.