Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
biggie313 webforumsuser@macromedia.com #1
Help on making a tezt box e-mail me the answer
say i have 2 boxes, one start says name, and one that says location. How would i get the answer e-mailed to me?.... i've seen this b4. like when some one types they are Justin from heretown, i get a e-mail saying that... whats the HTML to link a box to e-mail
biggie313 webforumsuser@macromedia.com Guest
-
Making a page values of list and send mail
Hello Dreamweaver, I need to make quite a simple web page. It has a list of 10 items with radio buttons. The user selects some of the items by... -
#25357 [Com]: Mail() function is loosing cahracters when sending mail
ID: 25357 Comment by: dj_canard at yahoo dot com Reported By: pjsmith at microtech dot co dot gg Status: Bogus... -
#25195 [NEW]: Warning: mail(): Could not execute mail delivery program ...
From: mhawkins at ukeu dot com Operating system: Solaris 8 PHP version: Irrelevant PHP Bug Type: Mail related Bug... -
the script hangs up when i try to send mail with attachments using MAIL::Sender...???
As said in the topic... when i try to send an e-mail message using Mail::Sender the script hangs up before execution of $sender ->... -
my mail bounced. It says Murray does not like recipent. I need help don't answer if you bounce
Why are you shouting ... using all caps? I find your two posts very hard to understand. Exactly what do you want to achieve? ETC "Rose Roland"... -
TropeIA #2
Re: Help on making a tezt box e-mail me the answer
If I am understanding this question correct, you would like the users input emailed to you.
If this is the case, this should be done using server side code.
What language are you developing in? ASP? PHP?
Let me know and I'll post the answer for you.
Regards,
Giovanni
TropeIA Guest
-
biggie313 webforumsuser@macromedia.com #3
Re: Help on making a tezt box e-mail me the answer
i have no clue what language, i haven't made the page yet, but yes i want their response mail to me. Any language will work, but it need it to send 2 boxes at once, like one box for name, and another for e-mail
biggie313 webforumsuser@macromedia.com Guest
-
TropeIA #4
Re: Help on making a tezt box e-mail me the answer
Okay try this:
assuming your fields are named FIELD1 and FIELD2:
We'll be using ASP/VBScript to accomplish this. Based upon this example, you should be able to understand how ASP retrieves form variables.
Remember, this code should be run on the action page that your form submits to. Also make sure you are using POST in your form method. You don't HAVE to, but if you don't you'll need to get the variables a bit different by using Request.QueryString("myfieldname").
Hope this is of help...
Regards,
Giovanni
<%
' ---------- GET THE FORM VARIABLES
field1 = Request.Form("field1")
field2 = Request.Form("field2")
' ---------- BEGIN MAILING ROUTINE
set mail = server.CreateObject("CDONTS.NewMail")
mail.From = "biggie313@mywebsite.com" 'This is the address that the email is
mail.To = "biggie313@youremail.com" 'This is your email address
mail.Subject = "Info from form on web site" 'The subject as it will appear in the
mail.BodyFormat = 0
mail.MailFormat = 0
mailbody = "Here is the information that was submitted:" & "<p>"
mailbody = mailbody & "Field 1: " & field1 & "<br>"
mailbody = mailbody & "Field 2: " & field2
mail.body = mailbody
mail.Send 'Send the message out.
set mail = nothing
'----------- END MAILING ROUTINE
%>
TropeIA Guest
-
TropeIA #5
Re: Help on making a tezt box e-mail me the answer
Code didnt post properly - trying again...
' ---------- BEGIN MAILING ROUTINE
set mail = server.CreateObject("CDONTS.NewMail")
mail.From = "biggie313@mywebsite.com" 'This is the address that the email is
mail.To = "biggie313@youremail.com" 'This is your email address
mail.Subject = "Info from form on web site" 'The subject as it will appear in the
mail.BodyFormat = 0
mail.MailFormat = 0
mailbody = "Here is the information that was submitted:" & "<p>"
mailbody = mailbody & "Field 1: " & field1 & "<br>"
mailbody = mailbody & "Field 2: " & field2
mail.body = mailbody
mail.Send 'Send the message out.
set mail = nothing
'----------- END MAILING ROUTINE
%>
TropeIA Guest
-
TropeIA #6
Re: Help on making a tezt box e-mail me the answer
Ok this forum seems to be interpreting some of the code literally.... trying again!!!!!!!!
Ok now it's posting properly.....
' ---------- GET THE FORM VARIABLES
field1 = Request.Form("field1")
field2 = Request.Form("field2")
' ---------- BEGIN MAILING ROUTINE
set mail = server.CreateObject("CDONTS.NewMail")
mail.From = "biggie313@mywebsite.com" 'This is the address that the email is
mail.To = "biggie313@youremail.com" 'This is your email address
mail.Subject = "Info from form on web site" 'The subject as it will appear in the
mail.BodyFormat = 0
mail.MailFormat = 0
mailbody = "Here is the information that was submitted:" & "<p>"
mailbody = mailbody & "Field 1: " & field1 & "<p>"
mailbody = mailbody & "Field 2: " & field2
mail.body = mailbody
mail.Send 'Send the message out.
set mail = nothing
'----------- END MAILING ROUTINE
%>
Finally...sheesh
TropeIA Guest
-
biggie313 webforumsuser@macromedia.com #7
Re: Help on making a tezt box e-mail me the answer
where do i have to put the open and close arrows???
biggie313 webforumsuser@macromedia.com Guest



Reply With Quote

