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!

email form 2

Status
Not open for further replies.

ShirlT

IS-IT--Management
Mar 2, 2004
8
US
I'm trying to design my first website for our business. I have a form that I want to send to email by clicking on the submit button. How do I set this up? Does the "mailto:" work in internet explorer? Do I need an onClick/submit function? Where do I name the email address that it will send to?

Thanks for the help!
 
2 things,

1. Look into learning ASP (server-side scripting) where a form is sent to a processing form on the server

Code:
(i.e.
<%
set objMail = CreateObject("CDONTS.NewMail")

objMail.from = request.form("from")
objMail.to = request.form("to")
objMail.subject = "A subject" 
objMail.body = "The body."
objMail.BodyFormat = 1
objMail.MailFormat = 1
objMail.importance = 2
objMail.Send
set objMail = nothing     
%>
2. If you want to stay with emailing the form, you can go this route

Code:
(i.e.
<H3> Sign In, Please...</H3>
<FORM METHOD="POST" [b]ACTION="mailto:user@writemehere.com"[/b]>
<B>Please enter your name: </B><INPUT NAME="username" size="30"> <BR>
<B>and your e-mail address: </B><INPUT Name="usermail" size="30">
<p>
<CENTER>
<B>What do you think of my guestbook?</B>
<P>
<INPUT TYPE="radio" NAME=I_think_that VALUE="It's_Great">It's Great! 
<INPUT TYPE="radio" NAME=I_think_that VALUE="It_stinks">It Stinks! 
<INPUT TYPE="radio" NAME=I_think_that VALUE="You_stink">You Stink!
<BR>
<INPUT TYPE="radio" NAME=I_think_that VALUE="I_stink">I Stink!
<INPUT TYPE="radio" NAME=I_think_that VALUE="We_all_stink">We All Stink!
<P>
</CENTER>
<H3>Make any comments you'd like below:</H3>
<CENTER>
<TEXTAREA NAME="comment" ROWS=6 COLS=60></TEXTAREA>
<P>
<B>Thanks for your input</B>
<BR> 
<INPUT TYPE=submit VALUE="Send it!">
<INPUT TYPE=reset VALUE="Start over">
</CENTER>
</FORM>


buffalo.gif height="65" width="35"

 
Find out what operating system your hosting company uses before learning ASP, PERL, or other server-side scripting languages. ASP works on Windows based servers but not Linux/Unix based servers. PERL usually is ussed on Linux/Unix servers, but with some prodding of the System Administrator can be used on Windows systems.

There's always a better way. The fun is trying to find it!
 
Thanks for the update WartookMak. Question... this appears to be a complete server. If you're running Apache on an "x" box, how do you support ASP?

There's always a better way. The fun is trying to find it!
 
Since you guys were so helpful with the submit form problem I was having, I thought I would post another question here as well. The site is done, form cgi script as well, but the reset button does not work. Any suggestions on what the problem could be or what I can check? Thanks again in advance!
 
Shirl... Could you post your code, or a link to the site? Without see the code, we'd only be guessing.

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top