Forums

This topic is locked

Form Submission

Posted 24 Apr 2001 20:06:06
1
has voted
24 Apr 2001 20:06:06 Bruce MacDonald posted:
I have a user form I am trying to put together 209.53.130.90/Data_Returns/memberdetail.asp?ID=35 This form is writing to "inquiries" table in database. I would like to also send thje form contents to the e-mail address on the page. How would I go about this. Thanks

Replies

Replied 26 Apr 2001 00:55:06
26 Apr 2001 00:55:06 Scott Peterson replied:
You can use CDONTS

Just add this to your code:

Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail"
objMail.From =
objMail.To = email 'this is the variable of their email they entered in the form
objMail.Subject = Whatever
objMail.Body = "Thank you" & fname & "for registering"

There is a code that you use to make it return to the next line but I can't remember it.

I hope this helps.



Replied 26 Apr 2001 04:06:30
26 Apr 2001 04:06:30 Bruce MacDonald replied:
Thanks, I appreciate the response, but what I need to do is mail the form contents to the "memberID" of page selected. I think what you are suggesting would go to email entered in form.

Replied 26 Apr 2001 14:04:13
26 Apr 2001 14:04:13 Waldo Smeets replied:
charon.co.uk has a nice example at his Recourse > Ultradev 4 > Downloads section.

Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Replied 26 Apr 2001 20:13:35
26 Apr 2001 20:13:35 Bruce MacDonald replied:
Thanks Waldo I am taking alook at it right now. I hope this does what I want to do. This is what I have to accomplish:-)

User opens detail page getting data from recordset "rsmembers"
This displays member information:
209.53.130.90/Data_Returns/memberdetail.asp?ID=35 for example

User wants a catalogue or further information from member and fills out form.

Form is processed and and inserts form information to "inquiry" table in DB
and redirects to thank page, and also sends form information to member displayed via e-mail.

Now I can everything to function, but e-mail. Do I have to skip the thank-you page and pass e-mail_id from rsmembers to another page, and then mail. This is where I am stuck. I don't really care if a thank you page is displayed.
Thanks for the help



Reply to this topic