Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 9th, 2004, 11:15 AM
woohouz woohouz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 woohouz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up Getting cust. email via inputbox function help

Here is what I am attempting to do:
1) Get a customers email via a VB inputbox when they sign up for a class (using onSubmit, I call a function called getEmail)
2) Take that email that they submitted and send an email to it reminding them they signed up. I use another asp page to send the email, so I am trying to retrieve the email from the function…how do I do that??

Here is my code (not all of it):

Function getEmail()
Dim subEmail
Dim submitEmail
submitEmail = inputbox("Enter Email...")
subEmail = document.all.submitEmail.value
End Function

The email page:
NOTE: I used a form GET to call this page...

Dim objMail
Dim sentto
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = "techsupport@blah"
objMail.Subject = "You signed up for an AOA class"
objMail.To = Request.Form("subEmail")
objMail.Body = "You have signed up for the following AOA class:" & vbcrlf&_ vbcrlf&_

….and so on….

I know you’ll probably look at this and say WTF, but I’m new at this, so any help is appreciated.

Thanks for your time,
woohouz

Reply With Quote
  #2  
Old August 10th, 2004, 11:11 AM
woohouz woohouz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 woohouz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow Lil' mas info

I'm sorry, I meant to put down that I was using POST instead of GET. Also, I'll try and explain it in more detail......
I'm trying to run an online class. When the user checks the class they want and then click "submit", a function call signs them up by adding them to a mySQL DB. At the same time, I want to be able to capture their email (thru that inputbox), take that email they input, and use it to automatically send them a reminder that they had signed up. So I was trying to run two functions when the click "submit" (onclick="function1();function2())....the first function is the updateDB, the second is the getEmail. All i guess im trying to figure out is how to get the email from the function of my 1st asp file, into my email asp file. I hope this makes a lil more sense, and thank you for all your help.

Sean

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Getting cust. email via inputbox function help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT