469,322 Members | 1,596 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,322 developers. It's quick & easy.

How to write guestbook form data to a second page

doc barleycorn
I am trying to have a guestbook form on one page write to a second page. The pages are .html, and I know they need to be .asp, but every script I have tried doesnt work. My hosting account is shared windows and only allows asp scripting. Site is on godaddy.com. I will post the two pages here, and have removed all but the key elements. I tried various tutorials, and I know there must be two dozen ways to do it, but I have not been successful. If you need to see the site itself, let me know and I will post a link.

[HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Contact02</title>
</head>

<body>
<table border="1" width="90%" align="center">
<tr>
<td width="34%">&nbsp;</td>
<td width="32%">
</td>
<td width="34%" align="center"><h4>Sign my Guest Book & add Comments</h4><br><form action="" enctype="" target="_blank"> Name&nbsp;
<input type="text" name="name" value=""><br><br>E-Mail&nbsp;<input type="text" name="email" value=""><br><br>Comments<br><textarea name="comments" rows="6" cols="33">~under construction~</textarea><br><input type="submit" value="Submit"><br><input type="reset" value="reset"></form>
</td>
</tr>
</table>
</body>
</html>[/HTML]

[HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Guestlist02</title>
</head>

<body>
<table border="1" width="90%" align="center">
<tr>
<td width="30%" valign="top">&nbsp;</td>

<td width="60%" valign="top">Guest Book & Comments<br><br></td>
</tr>
</table>

</body>
</html>[/HTML]

I am simply trying to get the info entered on the first page to write to the form space on the second. Nothing fancy or complicated. Any help you can provide or suggestions would be greatly appreciated.
Thnanx, Doc Barleycorn
Oct 23 '08 #1
2 9048
GazMathias
202 Expert 128KB
You need to learn to learn to handle forms in ASP.

This page on W3Schools will show you how to achieve what you want.

In the example tho, the page is calling itself, but the same principle will apply to calling an alternate page.

The bits you are interested are "<form action ='somepage.asp'>" on the first page and Request.Querystring("somevariable") on the second.
Oct 23 '08 #2
jhardman
3,406 Expert 2GB
I am trying to have a guestbook form on one page write to a second page. The pages are .html, and I know they need to be .asp, but every script I have tried doesnt work. My hosting account is shared windows and only allows asp scripting. Site is on godaddy.com. I will post the two pages here, and have removed all but the key elements. I tried various tutorials, and I know there must be two dozen ways to do it, but I have not been successful. If you need to see the site itself, let me know and I will post a link.
Doc,

You say every script you have tried hasn't worked. Have you tried something very very basic just to test whether scripting is actually turned on? for example:
Expand|Select|Wrap|Line Numbers
  1. <%="Hello Doc Barley Corn"%>
if scripting is turned on it should print out just "Hello Doc Barley Corn", but if not, it will print out the whole code.

Jared
Oct 24 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Carlos Marangon | last post: by
2 posts views Thread by Patricia Hartman | last post: by
1 post views Thread by Viken Karaguesian | last post: by
5 posts views Thread by Elin | last post: by
Thekid
5 posts views Thread by Thekid | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by listenups61195 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.