I want to send an email with a link, but when I do so everyone can see were are the files located and that is something that I don't want. I want them to just see a link like this Dowlaod.
This is my code and isn't working.
- Code: Select all
<html>
<head>
<Title>Planner download</Title>
</head>
<body>
<?php
if (isset($_POST["name"]) and isset($_POST["emailad"]))
{
$name=$_POST["name"];
$email=$_POST["emailad"];
for ($i=1;$i<=6;$i++)
$download[$i]= "<a href=\"http://........./........./PlannerSetup.part$i.rar\">Download $i</a>";
if (mail($email, "Download request",
"Name:$name \nEmail address:$email\nDownload here:
\n$download[1]\n$download[2]\n$download[3]\n$download[4]\n$download[5]\n$download[6]"))
{
echo "Email sent!";
@mail("myemail@hotmail.com", "pldownload","Name:$name \nEmail address:$email");
}
else
{
echo "Email not sent!! Try again";
@mail("myemail@hotmail.com", "Failed!!!","Name:$name \nEmail address:$email");
}
}
?>
</body>
</html>


