Help on making a tezt box e-mail me the answer

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. #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...
    3. #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...
    4. 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 ->...
    5. 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"...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139