This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > Sending A Form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Luckyguy3d 2006-01-03, 6:24 pm |
| I Am Setting up a form for a theater that allows teachers to sign up for
workshops. I Need to have the form to go to an e-mail account for the ticket
manger to use. How do I configure the form to allow me to do this?
| |
| Kaosweaver 2006-01-03, 6:24 pm |
| Luckyguy3d wrote:
> I Am Setting up a form for a theater that allows teachers to sign up for
> workshops. I Need to have the form to go to an e-mail account for the ticket
> manger to use. How do I configure the form to allow me to do this?
You can use our extension to setup a simple form email:
http://www.kaosweaver.com/extensions/details.php?id=69
| |
| Murray *ACE* 2006-02-28, 6:21 pm |
| There are only two ways to process form data -
1. Use mailto:name@domain.com as the action of the form
2. Use a server-side scripting method to a) harvest the form's data, b)
process it in some manner, e.g., enter it into a database, c) formulate and
send an email to one or more email recipients, and d) redirect the visitor
to some ending page
Method 1 is quite simple, and is also the least reliable. It depends both
on your visitor having an email client already installed on their computer -
this eliminates public computers, or home users without email clients
installed (more and more it seems) - and on the installed email client
responding to
the mailto call. It is not possible to use this method *and* send the
visitor to a
thank you page as well.
Method 2 is the preferred method, since it eliminates the problems of method
1, but it means that you have to grapple with server-scripting somehow (ASP,
CF, PHP, perl, etc.).
You would have to decide which of these methods is best for your needs,
but if it's Method 2, then start by asking your host what they provide for
form
processing.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"forumnotifier" <webforumsuser@macromedia.com> wrote in message
news:du29n0$gr9$1@forums.macromedia.com...
>I have an .ASP page and everytime I click the submit button on my form it
>just stays there. How can you send a form in an asp page? Am I doing it
>wrong?
| |
| bregent 2006-02-28, 6:21 pm |
| >How can you send a form in an asp page?
Send it where? To your script?
>Am I doing it wrong?
Probably. It's hard to tell if we can't see your page and/or your code.
| |
| TGuthrie 2006-02-28, 6:21 pm |
| Alright sorry about not being to descriptive.
I have an ASP page that displays a list of computers that are recieved from my
database. Then I want to place some of those records in a form, no problem.
When I send the form to an E-Mail so I can see when somebody wants to purchase
a computer the page just reloads. Is that a better response?
| |
| bregent 2006-02-28, 6:21 pm |
| Is the form handler script on the same page, or another page? You'll probably need to post the code if you need more help.
| |
| TGuthrie 2006-02-28, 6:21 pm |
| It's a very simple form, nothing beyond a basic form, its just when I put it in
a .asp page it never works. Here is the code...
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<!--#include virtual="/Connections/retiredsystems.asp" -->
<%
var retiredsystems = Server.CreateObject("ADODB.Recordset");
retiredsystems.ActiveConnection = MM_retiredsystems_STRING;
retiredsystems.Source = "SELECT * FROM Assets";
retiredsystems.CursorType = 0;
retiredsystems.CursorLocation = 2;
retiredsystems.LockType = 1;
retiredsystems.Open();
var retiredsystems_numRows = 0;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p><input name="SerialId" type="text"
value="<%=(retiredsystems.Fields.Item("SerialID").Value)%>" readonly="true" />
</p>
<p>
<label>
<input type="submit" name="Submit" value="Submit"
mailto:"tguthrie@demmercorp.com"/>
</label>
</p>
</form>
</body>
</html>
<%
retiredsystems.Close();
%>
| |
| Paul Whitham ACE 2006-02-28, 6:21 pm |
| You don't have an action specified in the FORM which means that the form is
posting back to the same page, and you do not have any code of the page to
do anything other than call the select statement.
--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"TGuthrie" <webforumsuser@macromedia.com> wrote in message
news:du2b6u$irh$1@forums.macromedia.com...
> It's a very simple form, nothing beyond a basic form, its just when I put
> it in
> a .asp page it never works. Here is the code...
>
>
> <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
> <!--#include virtual="/Connections/retiredsystems.asp" -->
> <%
> var retiredsystems = Server.CreateObject("ADODB.Recordset");
> retiredsystems.ActiveConnection = MM_retiredsystems_STRING;
> retiredsystems.Source = "SELECT * FROM Assets";
> retiredsystems.CursorType = 0;
> retiredsystems.CursorLocation = 2;
> retiredsystems.LockType = 1;
> retiredsystems.Open();
> var retiredsystems_numRows = 0;
> %>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> <title>Untitled Document</title>
> </head>
>
> <body>
> <form id="form1" name="form1" method="post" action="">
> <p><input name="SerialId" type="text"
> value="<%=(retiredsystems.Fields.Item("SerialID").Value)%>"
> readonly="true" />
> </p>
> <p>
> <label>
> <input type="submit" name="Submit" value="Submit"
> mailto:"tguthrie@demmercorp.com"/>
> </label>
> </p>
> </form>
> </body>
> </html>
> <%
> retiredsystems.Close();
> %>
>
| |
| bregent 2006-02-28, 6:21 pm |
| >It's a very simple form, nothing beyond a basic form,
>its just when I put it in a .asp page it never works.
There are two problem:
1) You are using mailto incorrectly
2) You are using mailto - never use this method to send for via email
You need to use an asp script that will process the form results and send them
to your mail handler. You should be able to find an asp form processor script
on the web easily.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|