Hi guys,
Im actually an ASP programmer (dont hate me) and I need some help with this snippet of code.
What I want to do is to get the users IP address and send it in the email body, or as part of the email message.
Im totally lost with this - no PHP programming knowledge at all!
Code:
<?php
// Your email address
$email = [email protected];
// The subject
$subject = "Attempted Purchase : $17";
// The message
$message = "A visitor has attempted to buy at $17";
mail($email, $subject, $message, "From: $email");
// redirect back to url visitor came from
header("Location: http://7.xxxxxx.pay.clickbank.net");
?>
I know to capture the users IP i have to use something like $_SERVER['REMOTE_ADDR'];
But where do I put it?
John