|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Form Results
I am a complete newbie here so bear with me.
I have programmed several online forms (typically using cgi). A client of mine does not like how the results are formated (the long column of text) Is there anything I can do to program the results of this online form to get put into another format that would be e-mailed to the receipient? I hope that all made sense. Thanks! |
|
#2
|
|||
|
|||
|
please search email on this forum to see how to send emails.
|
|
#3
|
|||
|
|||
|
forgive me for not understanding.
I have searched and have not seem to found what I need. The form is collecting data which gets e-mailed to a recipient as a long column of text. I want to take results of the form and process it into some sort of html-style e-mail for them. I hope this makes sense. |
|
#4
|
|||
|
|||
|
Ok...so I guess you are capable of retrieving the data from your <form>...</form> into variables right?
Once that is done, what's next? You want to send an email to someone but you want that email to be html formatted? Is that correct? If so, where are you know in your code? I mean what have you done so far? where are you stuck? And please show code ![]() hope this helps! Sincerely Vlince |
|
#5
|
|||
|
|||
|
I an currently using a sendmail script that is provided by my hosting company.
(basically like matt's form mail) I need to figure out what steps I need to take to capture the information and then process it back into the html-style e-mail. So, in a nut shell I guess I am at square one! |
|
#6
|
|||
|
|||
|
Ok so square one...
----------------------------------------------------------------------------------- <html> <body> <form name="frmMain" action="sendmail.asp" method="post"> <textbox1> <textbox2> <Submit Button> </form> </body> </html> ----------------------------------------------------------------------------------- Notice the action="sendmail.asp" When the <form>...</form> is submitted, it will send *ALL* the information to sendmail.asp. Now let's create sendmail.asp ----------------------------------------------------------------------------------- <%@ Language=VBScript %> <% Dim strTextBox1 Dim strTextBox2 strTextBox1 = Trim(Request.Form("txtTextBox1")) strTextBox2 = Trim(Request.Form("txtTextBox2")) 'NOTE: I've assumed that the name of your textboxes were: 'txtTextBox1 and txtTextBox2 'FOR DEBUG ONLY 'Response.Write "-->" & strTextBox1 & "<--<br>" 'Response.Write "-->" & strTextBox2 & "<--<br>" 'Response.End 'Ok now that we hold, into variables, the <form> fields...we can 'now wend the email Dim objMail Set objMail = Server.CreateObject("xxxx.zzzzz") If NOT IsObject(objMail) Then Response.Write "Object is not created..must register component on server!" Response.End End If objMail.... ... .. . objMail.Send Set objMail = nothing %> Now since I don't know the mail component your talking about I can't/don't know the properties and methods of the component, you'll have to fill in the blanks... Hope this helps! Sincerely Vlince |
|
#7
|
|||
|
|||
|
http://forums.devshed.com/showthrea...highlight=email
woah creepy, that's what my company calls it... sendmail can you show us the component your're using? Usually you can just set the body to HTML or MIME, so if you show us we might be able to tell you how to set that up, then you just send the body a sstring with html embedded and that's all there is to it man. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Form Results |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|