Have a simple jpg image in a html page, with a hyperlink to another website.
When somebody clicks the image, I want to call a php script located on a different server, and then end up at the hyperlinked? website.? The php script should send emails to 2 people.
Been trying to use OnClick, but the php script doesn’t get called.
Here is the non-working html code:
<a href="[[login to view URL]]" OnClick="<[login to view URL]>"> <img src="[login to view URL]"> </a>
Here is the php code for 1 email
$email? ? =? <'john@[login to view URL]'>;
$emailsubject? =? 'Visitor Clicked Through To Your Site!';
$mailbody = 'A web visitor from [login to view URL]';
mail($email, $emailsubject, $mailbody);
So the task is:
1)? Get the hyperlink to work, & the php script to be called
2)? Add 2nd email address in the php script