...

View Full Version : get name from linkedin website and use it to send in email based on URL



this_end_up
01-14-2010, 11:28 PM
Hello,

I developed a snippet of code to originally use for a landing page and prepoulated form.

I am now reusing this code to capture who visits my site based on an email invite.

Below is the code I use; the end result of the code is to send me an email when the person I had sent an email to has clicked on the link to visit my site...

I would send them a link by email (inviting them to view my site). The URL looks like this:

www.mysite.com/index.php?first=john&last=smith&company=ACME&email=jsmith@acme.com&op=contact

When they click on the link, I receive an email that looks like this:

----

Michael,

John Smith of ACME is viewing your online portfolio.

His/Her contact information is:

Name: John Smith
Company: ACME
Email: jsmtih@acme.com

-----

Below is the code I use:



<?php

// Change these two variables to meet your needs.

$myemail = 'myemail@mysite.com';
$subject = 'Portfolio Viewing ALERT - You An Online Visitor';
$emailrn = 'myemail@mysite.com';
$firstname = $_GET[first];
$lastname = $_GET[last];
$company = $_GET[company];
$position = $_GET[position];
$email = $_GET[email];
$id = $_GET[id];
$op = $_GET[op];
if($op == 'contact')
{
if(!$status)
{
$header = "From: $emailrnReply-To: $emailrn";
$message = "Michael,

$firstname $lastname of $company is viewing your online portfolio.

His/Her contact information is:

Name: $firstname $lastname
Company: $company
Email: $email";

if(mail($myemail, $subject, $message, $header))
{
$status = "Has been approved.<br><br>";
}

}
}
?>



I would like to expand this code to do the following:

I would like to create a URL that I can post into my "add your website" in my "LinkedIn" profile page. That is not the issue...my dream is to somehow get the persons name who clicked the "view website" and have it be sent to me through the php email. Can this be done? The image below is where I would like the link to be.

http://www.artisticoutput.com/linkedin.jpg

I do not know how to capture the persons name (they would need to be logged into their account to view my full profile)...not even sure if it can be done; but wouldn't it be nice?

Thanks

JAY6390
01-14-2010, 11:36 PM
Unless you have access to the linked in websites data you cannot do this no



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum