NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike Grigsby on May 02, 2008, 09:27:48 PM

Title: Including the record ID in an email link.
Post by: Mike Grigsby on May 02, 2008, 09:27:48 PM
I'm having difficulty figuring out how to form an email link that includes the record number in the body of the email. When I add the &ART__ID=12345, it thinks it's a new parameter.

I want a mail link that looks like this:
<a href="mailto:?subject=Check out this article: Modern Art Reviews&body=  The article can be found here: http://www.myserver.com/View_btn=View&ART__ID=10452'">Email to a friend</a>


I'm using this code:

<a href="mailto:?subject=Check out this article: ' & CLIP(ART:Title) & '&body=  The article can be found here: ' & CLIP(p_web.RequestReferer) & '/View_btn=View&ART__ID=' & p_web.GSV('ART:ID') & '">Email to a friend</a>

The link looks like this on the web page:

<a href="mailto:?subject=Check out this article: Modern Art Reviews&body=  The article can be found here: http://www.myserver.com/View_btn=View&ART__ID=10452'">Email to a friend</a>

My problem is that the URL requires the "&" symbol between the View_btn=View and the ART__ID= parameters. But by adding the & sign, it doesn't think the ID is still part of the body of the email. I've also tried the ascii equivalent: &38;, but the same problem happens. Has anyone dealt with adding email links that include the record ID?
Title: Re: Including the record ID in an email link.
Post by: Bruce on May 02, 2008, 11:44:34 PM
Hi Mike,

I haven't tried this, but replacing the & with a ? just might work....

Cheers
Bruce