HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS 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:
  #1  
Old June 3rd, 2004, 11:05 AM
ck22 ck22 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 ck22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question sending multiple values in hyperlink

hello everyone,
i get excel values from over 3000 records and i send a mail to each contact with the email id, which is also a field in the excel.
i have all the values i got from excel in some temporary variables and i want to send these values dynamically to each contact depen-ding on the mail id.
my approach is , i'm sending a mail to that particular contact with a hyperlink in the body of the mail and this is going to redirect him to another webpage where he sees all his information.
can someone tell me how to send multiple values in a hyperlink?? i tried some ways, but it just does'nt work out.

thanks in advance..
ck

Reply With Quote
  #2  
Old June 3rd, 2004, 12:54 PM
beercraft_asp's Avatar
beercraft_asp beercraft_asp is offline
Spell Breaker
ASP Free Novice (500 - 999 posts)
 
Join Date: May 2004
Posts: 990 beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 8 h 33 m 42 sec
Reputation Power: 5
Send a message via AIM to beercraft_asp Send a message via MSN to beercraft_asp
Arrow

Quote:
Originally Posted by ck22
hello everyone,
i get excel values from over 3000 records and i send a mail to each contact with the email id, which is also a field in the excel.
i have all the values i got from excel in some temporary variables and i want to send these values dynamically to each contact depen-ding on the mail id.
my approach is , i'm sending a mail to that particular contact with a hyperlink in the body of the mail and this is going to redirect him to another webpage where he sees all his information.
can someone tell me how to send multiple values in a hyperlink?? i tried some ways, but it just does'nt work out.

thanks in advance..
ck
Hi
try use querystring.
it will look somethig like this http://www.website.com/email_page.asp?mailID=value

Reply With Quote
  #3  
Old June 3rd, 2004, 02:01 PM
ck22 ck22 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 ck22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi!!

hi
thanks for that !! i'm doing something like this.
i'm writing this into a html file from a vb program and i later send the html file in the body of the mail.
when the user clicks the link it should redirect him to the webpage showing him all the information.
in the code below , fname, lname ... are the variables with values from the excel file.

this code actually writes down the link in the body of the mail ,but, it doesnt pass the values to the HTML page.
could someone throw some light into this??


Dim ofile As String
ofile = "c:\outtext.html"
Dim ts As TextStream
Dim outfile As File
Dim strbody As String
Set outfile = oFSO.GetFile(ofile)
Set ts = outfile.OpenAsTextStream(ForWriting)
ts.WriteLine ("<html><body>")
ts.WriteLine ("<a href=""C:\Documents and Settings\sadmin\Desktop\mailform.html?firstname=fn ame&lastname=lname">my Info</a>")
ts.WriteLine ("</html></body>")
Call writetotempfile(outfile, CStr(email))
ts.Close
End Sub

Reply With Quote
  #4  
Old June 3rd, 2004, 02:20 PM
beercraft_asp's Avatar
beercraft_asp beercraft_asp is offline
Spell Breaker
ASP Free Novice (500 - 999 posts)
 
Join Date: May 2004
Posts: 990 beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 8 h 33 m 42 sec
Reputation Power: 5
Send a message via AIM to beercraft_asp Send a message via MSN to beercraft_asp
Arrow

Quote:
Originally Posted by ck22
hi
thanks for that !! i'm doing something like this.
i'm writing this into a html file from a vb program and i later send the html file in the body of the mail.
when the user clicks the link it should redirect him to the webpage showing him all the information.
in the code below , fname, lname ... are the variables with values from the excel file.

this code actually writes down the link in the body of the mail ,but, it doesnt pass the values to the HTML page.
could someone throw some light into this??


Dim ofile As String
ofile = "c:\outtext.html"
Dim ts As TextStream
Dim outfile As File
Dim strbody As String
Set outfile = oFSO.GetFile(ofile)
Set ts = outfile.OpenAsTextStream(ForWriting)
ts.WriteLine ("<html><body>")
ts.WriteLine ("<a href=""C:\Documents and Settings\sadmin\Desktop\mailform.html?firstname=fn ame&lastname=lname">my Info</a>")
ts.WriteLine ("</html></body>")
Call writetotempfile(outfile, CStr(email))
ts.Close
End Sub


when you create email does it writes values here mailform.html?firstname=fname&lastname=lname??

Reply With Quote
  #5  
Old June 3rd, 2004, 02:28 PM
ck22 ck22 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 ck22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hi

in the mail i'm just showing a hyperlink, but in the hyperlink i should pass all the contact information.
all these values are passed on to another HTML page and should be displayed in the respective text fields.

thanks

Reply With Quote
  #6  
Old June 3rd, 2004, 02:45 PM
beercraft_asp's Avatar
beercraft_asp beercraft_asp is offline
Spell Breaker
ASP Free Novice (500 - 999 posts)
 
Join Date: May 2004
Posts: 990 beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 8 h 33 m 42 sec
Reputation Power: 5
Send a message via AIM to beercraft_asp Send a message via MSN to beercraft_asp
Arrow

yeah that's what you need to do.
also try pass values to asp page not to HTML

ts.WriteLine ("<a href=""C:\Documents and Settings\sadmin\Desktop\mailform.asp?firstname=" & fname &"&lastname=&" lname &"">my Info</a>"")

in you redirect page it should looks like this:
Code:
<%
 
response.redirect "viewdata.asp?mailID=" & value  &""
%>

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > sending multiple values in hyperlink


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