Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to submit a form?

Status
Not open for further replies.

Nina2001

Programmer
Dec 28, 2001
58
US
I know this is probably pretty oblivous to everyone...except me. I've read the help files and still don't know what I did wrong. I'd like the info from my form to just get collected and sent to a file and in an email. The page is at (the request info button) or here is my code:

<%@LANGUAGE=&quot;VBSCRIPT&quot;%>
<html>
<head>
<title>CoolCat Entertainment Form Page</title>
</head>
<body BGCOLOR=&quot;#FFFFFF&quot; LINK=&quot;#800000&quot; VLINK=&quot;#800080&quot;>
<form ACTION=&quot;nsinnott@hotmail.com&quot; METHOD=&quot;POST&quot; name=&quot;Inquiry&quot;>
<input type=&quot;hidden&quot; name=&quot;fail&quot; value=&quot; <input
type=&quot;hidden&quot; name=&quot;good&quot; value=&quot; <div
align=&quot;center&quot;>
<center>
</center>
</div>
<hr WIDTH=&quot;600&quot; align=&quot;center&quot;>
<blockquote> <font COLOR=&quot;#E61A24&quot;>
<p><font color=&quot;#000000&quot;>Whether you are planning a wedding or a private/corporate
event, the purpose of filling out this form is for you to receive further
information about my service by mail, and to check on the availability of
your celebration date. I will be in contact with you soon after this form
is submitted (no longer than 2 business days). Thank you for your interest
in Cool Cat Entertainment.</font></p>
</font>
<p><font color=&quot;#000000&quot;>Sincerely,<br>
Vinny Liotta</font></p>
<hr>
<p><font color=&quot;#000000&quot;>Name:
<input TYPE=&quot;text&quot; NAME=&quot;Name1&quot; VALUE SIZE=&quot;30&quot;
MAXLENGTH=&quot;50&quot;>
(If wedding, list bride and groom)<br>
Name:
<input TYPE=&quot;text&quot; NAME=&quot;Name2&quot; VALUE SIZE=&quot;30&quot;>
<br>
Address:
<input TYPE=&quot;text&quot; NAME=&quot;Address&quot; VALUE SIZE=&quot;31&quot; MAXLENGTH=&quot;50&quot;>
<br>
City:
<input TYPE=&quot;text&quot; NAME=&quot;City&quot; VALUE SIZE=&quot;20&quot;>
<br>
State:
<input TYPE=&quot;text&quot; NAME=&quot;State&quot; VALUE SIZE=&quot;2&quot; MAXLENGTH=&quot;2&quot;>
<br>
Zip:
<input TYPE=&quot;text&quot; NAME=&quot;Zip&quot; VALUE SIZE=&quot;5&quot; MAXLENGTH=&quot;5&quot;>
<br>
Daytime Phone:
<input type=&quot;text&quot; name=&quot;DayPhone&quot; VALUE size=&quot;12&quot; maxlength=&quot;12&quot;>
Evening Phone:
<input TYPE=&quot;text&quot; NAME=&quot;NightPhone&quot; VALUE SIZE=&quot;12&quot; MAXLENGTH=&quot;12&quot;>
<br>
E-mail Address:
<input TYPE=&quot;text&quot; NAME=&quot;email&quot; VALUE SIZE=&quot;20&quot;>
<br>
What type of event are you planning?
<input
type=&quot;text&quot; name=&quot;EventType&quot; VALUE size=&quot;16&quot;>
<br>
Date of your event:
<input TYPE=&quot;text&quot; NAME=&quot;EventDate&quot; VALUE SIZE=&quot;30&quot;>
<br>
Location of event:
<input TYPE=&quot;text&quot; NAME=&quot;EventLocation&quot; VALUE SIZE=&quot;30&quot;>
<br>
Time of event:
<input TYPE=&quot;text&quot; NAME=&quot;EventTime&quot; VALUE SIZE=&quot;11&quot;>
<br>
Approximate number of guests:
<input TYPE=&quot;text&quot; NAME=&quot;Guests&quot; VALUE SIZE=&quot;4&quot;>
<br>
Where did you hear about CoolCat Entertainment?
<input TYPE=&quot;text&quot;
NAME=&quot;Referral&quot; VALUE SIZE=&quot;30&quot;>
<br>
Additional Notes &amp; Comments:
<textarea NAME=&quot;NotesOrComments&quot; ROWS=&quot;7&quot; COLS=&quot;49&quot;
WRAP=&quot;virtual&quot;></textarea>
</font></p>
</blockquote>
<p>&nbsp;</p>
<p><font color=&quot;#000000&quot;>
<input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Submit Form&quot;>
<input
TYPE=&quot;reset&quot; VALUE=&quot;Reset Form&quot; name=&quot;Reset&quot;>
</font></p>
<font COLOR=&quot;#FF0000&quot;>
<hr>
</font>
</form>
</body>
</html>

Any help would be appreciated.
 
<form ACTION=&quot;nsinnott@hotmail.com&quot; METHOD=&quot;POST&quot; name=&quot;Inquiry&quot;>

needs to have a mailto by your address:

<form ACTION=&quot;mailto:nsinnott@hotmail.com&quot; METHOD=&quot;POST&quot; name=&quot;Inquiry&quot;>
 
Typically you can collect the info and either insert it on the same page using DW's insert behavior, then redirect to another like thank you page - that has the mailing information in it.

Or you can submit the form to the second page that can do both at once.

I'm guessing your thankyou.html must insert - well if you have problems with getting it to work - hollar away. &quot;Damn the torpedoes, full speed ahead!&quot;

-Adm. James Farragut

Stuart
 
I fixed the mailto: problem (Thanks) but now I'm getting some crazy pop ups that says something to this effect, &quot;your mail server is trying to send a msg for you if you did not start this it may be a virus - do you want to continue.&quot; Then you say yes and it never really does anything. How can I fix this so the user doesn't have to see anything after the submit button is selected?
 
Thats security settings via the browser and all.

First - does the method you are using populate the database? &quot;Damn the torpedoes, full speed ahead!&quot;

-Adm. James Farragut

Stuart
 
No. I'm not using a database. I just want the form to send an email. I use GoDaddy as the host. Someone else mentioned contacting them to see if they can encrypt it somehow. I sent an email to their customer support....Let's see how long ti takes to get a reply.
 
ok, and in the future, I would try to avoid cross posting.

Putting the question in more than one location may get a slightly speedier answer, but it also will make some of us work for awhile only to find out its been answered already.

Not being confrontational here - just as a f.y.i for future use :) &quot;Damn the torpedoes, full speed ahead!&quot;

-Adm. James Farragut

Stuart
 
Well....I searched past threads for a similiar question and responded to it. I was not sure if it would bring it to the front for anyone to answer. Now I know it does and people do actually answer an old thread...for next time.
 
Need a CGI bin on your site to handel your form to email.

JCB
 
Forgive my ignorance! I have the same question but remain confused.
My code:

<FORM action=&quot;mailto:you@yourdomain.com&quot;>
<TABLE BORDER=&quot;0&quot; CELLPADDING=&quot;2&quot;>
<TR>
<TD><FONT face=&quot;Verdana&quot; size=2>Name:</FONT></TD>
<TD><INPUT name=&quot;Name&quot; value=&quot;&quot; size=&quot;10&quot;></TD>
</TR>
<TR>
<TD><FONT face=&quot;Verdana&quot; size=2>Email:</FONT></TD>
<TD><INPUT name=&quot;Email&quot; value=&quot;&quot; size=&quot;10&quot;></TD>
</TR>
<TR>
<TD></TD>
<TD><INPUT type=&quot;submit&quot; value=&quot;Submit&quot;></TD>
</TR>
</TABLE>
</FORM>

But as per the previous question, when the user clicks the submit button I want to redirect him to a thank you page. Is there a simple line of html code I can add to the above to achieve this. E.g. <FORM action=mailto:you@yourdomain.com and redirect to would be nice.

I’m not using CGI, Java, Perl or a second submit page as I don’t really understand them. If one of these methods is a must, please advise which one is the easiest to learn and adopt.
 
well you need something to allow the email to be sent.

I would recommend you just do the following:

goto download the formmail script there for asp - its really good.

submit your form to formmail.asp - this will send the email on out, and tell the individual they had an email sent.

&quot;Damn the torpedoes, full speed ahead!&quot;

-Adm. James Farragut

Stuart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top