Click to See Complete Forum and Search --> : Guestbook Help
BeefyBooyawn
08-15-2003, 05:38 AM
This is probably a stupid question, but I have a guestbookon my site that contains the page that gets filled out, and the page that you see afterwards, with your post and everybody elses posts that signed. The problem I'm having is, when the guestbook is signed, and the submit button link is clicked, it doesn't go to the next page like it's supposed to, it goes to a "Your page can't be found" page. The signed page can be viewed manually, but not after clicking submit. Any ideas, or do you need me to put the code on here, or what? I tried some stuff, but obviously didn't work. Thanks in advance.
DaveSW
08-15-2003, 06:56 AM
You'd better post the code I think. Unless it's a spelling error in the filename, capitalisation maybe?
BeefyBooyawn
08-15-2003, 02:45 PM
Wow, I think I got it. I'm going to try something first, and then I'll let you know. Thanks!
BeefyBooyawn
08-15-2003, 03:06 PM
Ok, it didn't work. Here is the code for the guestbook. There was a couple of codes for the book, but I'm not sure what they all do. This is the code for the first page, the one you fill out.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>
Welcome to my Guestbook!
</TITLE>
<STYLE type="text/css" name="Stationary">
body {
font-size: 13pt;
font-family: Arial,Helvetica,adobe-helvetica,Arial Narrow;
color: #333333;
background-color: #ffffff;
}
a:link {color: #0066cc;}
a:visited {color: #009900;}
.template {font-size: 8pt;}
div.c1 {text-align: center}
</STYLE>
</HEAD>
<BODY>
<DIV class="c1">
<H1>
Welcome to my Guestbook!
</H1>
</DIV>
<BR>
<BR>
<form action="/cgi-bin/guestbook/BeefyBooyawn/gbook/gdata.htm" method="POST">
<INPUT type="hidden" name="required" value="name,email"><INPUT type="hidden" name="ResponsePage" value="thank.htm"><INPUT type="hidden" name="notify" value="yes"><INPUT type="hidden" name=
"AllowHTML" value="no"><INPUT type="hidden" name="subject" value="New Guestbook Entry!">
<PRE>
Please tell me your name:
<INPUT name="name" type="text" size="30">
<br>
Please tell me your e-mail address:
<INPUT name="email" type="text" size="30">
<br>
Do you have a homepage?
Tell me your URL, I will check it out:
<INPUT name="homepage" type="text" size="30" value="http://">
<br>
How did you find this page?
<SELECT name="reference">
<OPTION selected>
From a search engine
</OPTION>
<OPTION>
A friend told me
</OPTION>
<OPTION>
Link from another page
</OPTION>
<OPTION>
Stumbled onto it
</OPTION>
</SELECT>
<br>
Your comments about my homepage:
<TEXTAREA name="comments" rows="5" cols="30">
</TEXTAREA>
Would you like to be notified about changes to this page?
<INPUT name="interest" type="radio" value="yes" checked> <B>YES</B>, please notify me!
<INPUT name="interest" type="radio" value="no"> <B>NO</B>, not interested.
</PRE>
<DIV class="c1">
<INPUT type="submit" value="Add it!"> <INPUT type="reset" value="Nevermind"></form><BR>
If your browser doesn't support forms, please <A href="mailto:beefybooyawn@aol.com">E-Mail Me!</A>
</DIV>
<BR>
<DIV class="c1">
<A href="gdata.htm">View Guestbook</A> | <A href="http://members.aol.com/BeefyBooyawn/index.html">Back Home</A><BR>
<BR>
<SPAN class="template">Template created by <A href="http://aolsvc.cc.aol.com/computercenter/ccenters/go.jsp?ccbrand=aol∓ccname=computing_web">AOL Web Page Community</A></SPAN>
</DIV>
</BODY>
</HTML>
This is the page that you view the posts on. I did have some posts on here, and I took them out. The code should still be the same.
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1">
<META name="AUTHOR" content="AOL Web Page Community">
<TITLE>
My Guestbook Entries
</TITLE>
<STYLE type="text/css" name="Stationary">
body {
font-size: 13pt;
font-family: Arial,Helvetica,adobe-helvetica,Arial Narrow;
color: #cc00cc;
background-color: #000000;
}
a:link {color: #0066cc;}
a:visited {color: #009900;}
p.c5 {font-family: Arial,Helvetica,adobe-helvetica,Arial Narrow; font-size: 13pt; text-align: center}
span.c4 {font-family: Arial,Helvetica,adobe-helvetica,Arial Narrow; font-size: 13pt}
a.c3 {font-family: Arial,Helvetica,adobe-helvetica,Arial Narrow; font-size: 13pt}
h3.c2 {font-family: Arial,Helvetica,adobe-helvetica,Arial Narrow; text-align: center}
p.c1 {text-align: center}
</STYLE>
</HEAD>
<H3 class="c2">
Thanks for visiting Beefy's Guestbook o' Fun!
</H3>
<P class="c1">
<A href="http://hometown.aol.com/beefybooyawn/page48.html" class="c3">Make an entry</A> <SPAN class="c4">to the guestbook.<BR>
<BR>
</SPAN><A href="http://members.aol.com/BeefyBooyawn/index.html" class="c3">Back to First Page</A>
</P>
<P class="c5">
Here are what some previous guests have written about my web site:
</P>
<HR noshade width="80" height="2">
</BODY>
</HTML>
This is the page that when the submit button is clicked, you are taken to that says thanks, and then you have the option of going to the post or going back to the first page.
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1">
<META name="AUTHOR" content="AOL Web Page Community">
If that link works, then I don't know what's wrong. If it doesn't then there's a problem in the file name or path.
BeefyBooyawn
08-15-2003, 03:38 PM
Ok, I'll try that. I did change the gdata.htm to the page number, but I didn't replace the whole thing. Thanks, and I'll let you know.
CyCo
08-15-2003, 03:39 PM
Are you sure this thing ever worked? By the action of the form, I can't see how it could process anything.
DaveSW
08-15-2003, 03:44 PM
lol yeah I just noticed that. The page which is in the form action, what is on it? There should be some server side code in there - it should have a .php extension or something like that.
BeefyBooyawn
08-15-2003, 03:50 PM
Ok, I am an idiot almost when it comes to this stuff, what exactly did y'all mean with all that? The one code I didn't include the posts that were on there, so some of the code may not be included in that. But if you were talking about one of the other codes, please explain. Consider me in kindergarden.
CyCo
08-15-2003, 03:55 PM
...well, I'm guessing you're using a cgi script...since the form action is pointing there, so you should have some cgi script to call such as guestbook.cgi....
DaveSW
08-15-2003, 03:55 PM
In other words...
1) user enters data on the form
2) data is sent to the file under the <form action="..." etc>
the trouble is, the form action is an html file. An html file won't process a guestbook I don't think. The action (I think) should be a page with server side coding (i.e. process.php) which writes the information to the guestbook.
In short, as Cyco so rightly pointed out, there appears to be a step missing.
BeefyBooyawn
08-15-2003, 05:23 PM
I don't get it either. When someone submits something, it does go to the posted page, but there is nothing connecting the two. After clicking on submit, it goes to URL not found, but if you go back, it'll have your post on. Don't make sense.
PeOfEo
08-15-2003, 07:53 PM
Are you using a server side language to update the data base. The people have been saying put some cgi in there and put some php in there and change the extention. Are you doing it? It wont work If you don't
BeefyBooyawn
08-16-2003, 04:42 AM
Once again, I'm not totally smart on HTML or anything like that. I used it once and it worked and I kind of taught myself on the rest. If it doesn't work for me, then I usually just take it off or ask a friend of mine. If those things aren't in the codes, then I don't use them. I don't know what those do or where to put them or anything. When I originally used the guestbook it worked. I didn't change anything in the code, that is what it was before. But I don't know what to do to fix that problem. Like I said, it will put the post on the posted page, but it won't go to it after you click submit on the sign it page. That is all I know. If you can help me figure that out, I'd appreciate it.
DaveSW
08-16-2003, 11:32 AM
Is this the book we're talking about?
http://members.aol.com/beefybooyawn/page48.html
If so, the code isn't very good for it - quite confusing in fact. Cleaner code may help to correct your problem, if somehow, miraculously, it worked before! (I've never seen a form submit to html...) I'll have a look next week anyway!
PeOfEo
08-17-2003, 12:12 AM
without a server side language this simply cannot work. If you dont know one of these and dont really have the foundation that you need in html to persue other technologies then my one suggestion would be a get a premade guest book because a guest book needs to store data someway, and that way is through a server side language and a data base.
BeefyBooyawn
08-18-2003, 05:15 AM
DaveSW, that is the one.
And I don't know what else to tell you. It has been storing the info. It is a html code, and it does work. I don't know how, I'm not hip to that. But it has been working, it's just that transition to the second page that I can't figure out. It used to work. I would have gone to the Hometown Help for this, but unfortunately where I got this from a year ago isn't there anymore, and so I can't ask them for help. If this can't be figured out, then I won't worry about it. I do thank all of you for all of your help though.
webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved.