PDA

View Full Version : Guestbook Code not letting me POST


bradyj
07-30-2003, 09:18 PM
I am trying to use an online script to make a simple guestbook -- yet, it gives me a constant error that the POST method is not allowed... any ideas why it won't let me do this? Is it an issue with my host?

This is the code for the file titled 'addpost.fcn':


<error>You need to enter your name.</error>
<require name>

<error>You need to enter a message.</error>
<require message>

<savecustom "guestbookdata.rev" APPEND,REVERSE,GUARD>
From: %name%
<p>
%message%
<hr>
</savecustom>

<redirectto href="index.shtml">


And this is my simple html code:

<body bgcolor="#FFFFFF" text="#000000">
<h1>My Guestbook!</h1>

<p>
Welcome to my guestbook! Please say something!

<form method=post action=addpost.fcn>
Your name: <input type=text name=name><br>
Your message:<br>
<textarea rows=10 cols=60 name=message></textarea>
<br>
<input type=submit value="Add message">
</form>

<hr>
<!--#include virtual="guestbookdata.rev"-->


</body>


Should fly right? Or am I loading it wrong here...

ACJavascript
07-31-2003, 03:25 AM
.fcn????

I never seen that type of file extension lol

What language are you using?

bradyj
07-31-2003, 04:26 PM
Neither have I:D It was forwarded to me from a fellow Web Geek from this site:
http://www.sonoma.edu/it/websupport/faq/guestbook.html

It seems to function just as fine for them, I am unsure what it can do for me.

MotherNatrsSon
07-31-2003, 04:53 PM
Originally posted by bradyj
Neither have I:D It was forwarded to me from a fellow Web Geek from this site:
http://www.sonoma.edu/it/websupport/faq/guestbook.html

It seems to function just as fine for them, I am unsure what it can do for me.

It says "you can use on the campus and student web servers. "

They may have their servers configured for it special in some way.

There are a bunch of free ones at this link.

http://www.devdaily.com/Dir/Perl/CGI/Guestbooks/

MNS

ACJavascript
08-01-2003, 02:38 AM
AH MNS you come to the rescue once again :D

Thats probably exacly what it is.

bradyj
08-01-2003, 04:32 PM
Yes, you are correct MNS -- to work around, I found a PHP script one, and reworked it. You can view the website for my sister's wedding (and the guestbook) at:
http://www.dotfive.com/wedding/index.html

No obscene posts please:)