NetTalk Central

Author Topic: Including the record ID in an email link.  (Read 2507 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Including the record ID in an email link.
« 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?
« Last Edit: May 02, 2008, 09:31:43 PM by Mike Grigsby »
Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Including the record ID in an email link.
« Reply #1 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