Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

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:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old November 25th, 2003, 04:26 PM
RichieC RichieC is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 RichieC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
'Remove Me' feature in e-mail blasts

Am looking to setup a link at the bottom of my e-mail brodcasts that let a person remove themselves from my e-mail list. I know who each person is that I send to and we will be embedding their ID number in the 'Unsubscribe' link of the e-mail that goes to them. When they click on that link and get taken to the ASP page, I want to take that ID number provided in the URL, look it up in our database and update and update their preferences column in the database with the appropriate data. I'm new at coding an not quite sure how to go about this. Am told that I should use the request.querystring method to handle. Are there any examples out there that might be geared toward what I'm trying to do?

Reply With Quote
  #2  
Old November 25th, 2003, 05:37 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
ASP Free God 14th Plane (11500 - 11999 posts)
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,738 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 1 h 34 m 28 sec
Reputation Power: 443
updateDatabase.asp page
Code:
'Grab the emailId from the querystring
emailId = Request.QueryString("EmailId")

'Set the connection object
Set Conn = Server.CreateObject("ADODB.Connection")

'Open the connection to the database
Conn.Open(connection information)

'Create the update statement that will be executed
updateEmail = "UPDATE table SET preference = 'preference' WHERE EmailId = " & emailId & ""

'Execute the SQL statement
Conn.Execute(updateEmail)

'Close the connection
Conn.Close

'Set the connection object to nothing
Set Conn = nothing

Reply With Quote
  #3  
Old November 25th, 2003, 06:24 PM
RichieC RichieC is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 2 RichieC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks!!

Thanks so much!!! I will use this as my starting point and figure out from there! Much appreciated!!!!!
-Rich

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > 'Remove Me' feature in e-mail blasts


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 5 hosted by Hostway