473,734 Members | 2,788 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to write guestbook form data to a second page

doc barleycorn
2 New Member
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>Contact0 2</title>
</head>

<body>
<table border="1" width="90%" align="center">
<tr>
<td width="34%">&nb sp;</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><b r>E-Mail&nbsp;<inpu t type="text" name="email" value=""><br><b r>Comments<br>< textarea name="comments" rows="6" cols="33">~unde r construction~</textarea><br><i nput 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>Guestlis t02</title>
</head>

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

<td width="60%" valign="top">Gu est 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 9398
GazMathias
228 Recognized Expert New Member
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.Queryst ring("somevaria ble") on the second.
Oct 23 '08 #2
jhardman
3,406 Recognized Expert Specialist
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

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

Similar topics

4
10771
by: Carlos Marangon | last post by:
Hello! People go to sign my guestbook and wrote all text in capital letters. Did you know any script that shows an window alert when one types the second capital letter? Best regards,
6
11184
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
2
3272
by: Patricia Hartman | last post by:
I implemented an asp script to create a guestbook in the cgi-bin directory of my website. The script is supposed to append to a text file (it is there) and then display it using include. When I try to run it, the form appears, but when I click the submit button, the browser goes out to lunch forever. Netscape says it is getting data from www.mysite.com, but nothing actually appears. I set the permissions for the text file, the cgi-bin and...
1
11979
by: Viken Karaguesian | last post by:
Hello everyone, Just wanting some advice. I'd like to start removing the Microsoft-generated guestbook (a feature of FrontPage) on my websites but I'm not sure if it can be done just using HTML. There seems to be a lot of server-side processing going on. The guesbooks are setup in such a fashion that when user submits an entry, not only is it posted in the page for public viewing, but I also receive an e-mail letting me kow that the...
5
10731
by: Elin | last post by:
I'm new to PHP and would just like to create a simple guestbook for my site, without having to use SQL (don't even know what that is, so...). All I've managed to do is make a form which posts the information on another page, but then when you fill out the form again, the information on the other page changes. How do I get the posts to stay on the page and add new ones?
4
5930
imarkdesigns
by: imarkdesigns | last post by:
hello guys, im in need of something... something that can validate individual entry to my guestbook... which it can validate the entry pass to my form when someone signed on it.... my custom guestbook contains: Name Email Website Referrer
4
10340
by: infoseekar | last post by:
HI Guys I am a beginner. I am trying to create a guestbook. I have the code for it and it is in three parts. Part 1 "dp.php" to open database and make connection Part 2 "index.php" which will show the guestbook entries and Part 3 "add.php" to add new entry. The problems is when i run any of the file nothing happens i.e. no error(s) and no result. I tired to check the code so many times and couldnt any find any errors. Part 1
5
25641
Thekid
by: Thekid | last post by:
Hi, I'm using xampplite and I'm trying to make a guestbook and a forms page where you can post to the guestbook with PHP & MySQL. I got the code from a website but it wasn't working so I tinkered with it a little and it's closer but not quite right. I made a database named 'guestbook' with a table named 'visitors'. In it are the following fields: TimeStamp Name Last email comment Here is the code to the guestbook (guestbook.php),...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.