[thelist] Confirmation pages for an HTML form

Karen Bowen karen at miinx.com.au
Sun Oct 14 22:48:48 CDT 2001


Hi Bob,

IIUC, what you need is a server-side script that processes the data entered
into the form, then either redirects the user to your confirmation page, or
displays a thankyou message itself.  The 'action' attribute of the first
form would be set to the url of this script.

There are many ways to create such a script, depending on, amongst other
things, the server-side language you're using.  Here's a simple example
using ASP (watch the wrap):

<%
' Get form details
Dim salut, name

salut = Request.Form("fieldSalutation")
name = Request.Form("fieldName")

' Now you could either display a message...
Response.Write "Thankyou for submitting your details, " &_
	salut & " " & name & ".<br>"

' ...or redirect the user to the thanks pg
Response.Redirect "thankyou.asp"
%>

Note that you wouldn't display the message if you were redirecting the user,
as the message won't be seen.

Hope that helps,
Karen
---------------
www.miinx.com.au
www.monkey.com.au
www.d-genre.com



-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Bob Boisvert
Sent: Sunday, 14 October 2001 3:48 AM
To: Thelist (E-mail)
Subject: [thelist] Confirmation pages for an HTML form


Hi List,


How would I go about creating a confirmation page for an HTML form. I using
Dreamweaver Ultradev 4 and the online help doesn't seem to be helping.

What I want to do is have a page come up and say, Thank you for submitting
your request or something to that affect and also have that confirmation
page add in the senders name and salutation, Mr., Mrs. Ms. so and so.

Eventually I going to have the information put into a database but for now
I'm not sure of how to go about the confirmation page.


Thanks,
Bob
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.286 / Virus Database: 152 - Release Date: 10/9/01


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list