Forums

This topic is locked

how to create a link in email ?

Posted 04 May 2003 12:16:37
1
has voted
04 May 2003 12:16:37 Richard Krawczak posted:
Hi there,

I want to make an email which contains a url-link with some variables attached to it. so when the user clicks the link, these variables are carried with the url to a aspfile which wil then process the variables furter on.

I can't find a wright syntax which wil do this. Setting body and mailformat to 0, thus enabling HTML possibility in the mail is not enough.
Without attaching variables it goes fine and the link is correctly displayed in the email and you can click it too.
Everything OK. BUT HOW DO YOU GET A LINK TO CARRY VARIABLES.

No one knows??
Not even here at DMX??

Got no responses sofar to this problem
Thus getting frustrated and weary

HEEEEELP


JJF

Replies

Replied 04 May 2003 17:54:18
04 May 2003 17:54:18 Lee Diggins replied:
Hi Jack,

when you are writing the link in the e-mail body, just include what you want in the querystring.

The querystring starts with a question mark (?)

myaspfile.asp?

The variable name and variable value are separated by an equals (=) sign

myVar1=1

The different variable name/value pairs are separated using the ampersand (& sign

myVar1=1&myVar2=2

The variable name goes before the equals sign

myVar1=

The variable value goes ofter the equals sign

=1

All together:

www.mysite.com/myaspfile.asp?myVar1=1&myVar2=2

You do not need to post a form using the get method to utilise the querystring, you can use it on any hyperlink you want to. It's best not having any spaces in the entire URL or the link won't include everything the want it to.

www.mysite.com/my aspfile.asp?my Var1=1&my Var2=2

Digga

Sharing Knowledge Saves Valuable Time!!!
Replied 04 May 2003 19:31:48
04 May 2003 19:31:48 Richard Krawczak replied:
Hi Digga, thanks for your reply

Tried this in the body but it didnt work, can you explain what i've done wrong here?

"<a href = 'molk.nl/hoofdmap/confirm.asp & "?" & valid = "true" & id = rs_email("Klant_Id" & email= rs_email("Email"'>Klik hier om uw order te bevestigen </a>"
Replied 04 May 2003 21:13:35
04 May 2003 21:13:35 Lee Diggins replied:
Hi Jack,

It depends how you are constructing this string and the 'variables' you are inserting into the querystring?

The easiest, is to create the string variable (using other code) and then add the string variable to the querystring like so:

<a href="molk.nl/hoofdmap/confirm.asp?<%= myString %>">Klik hier om uw order te bevestigen </a>

Digga

Sharing Knowledge Saves Valuable Time!!!

Reply to this topic