是否有可能在我的PHP中将$ link或autoreply下的链接或任何可下载内容放入(点击这里)?
我几乎没有在网上找到任何答案,我认为我仍然缺乏对PHP编码的理解。
<?php
/* SETTING VARIABLES */
/* FORMFIELD 1 */
$name = $_POST['name'];
$lastname = $_POST['lastname'];
$nickname = $_POST['nickname'];
$age = $_POST['age'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$skype = $_POST['skype'];
/* FORMFIELD 2 */
$membership = implode(',', $_POST['membership']);
$memberdetail = $_POST['memberdetail'];
/* RESPONSE TO Eng2Skype's email */
$autoreply="Thank you for registering with English2Skype™ \n\nPlease click HERE to download our manual and application forms \n\n English2Skype™ team";
$subject="Thank you for your submission! - English2Skype";
mail($email, $subject, $autoreply);
/* INFORMATION TO BE EMAILED */
$formcontent = "Name: $name \n Lastname: $lastname \n Nickname: $nickname \n Age: $age \n Phone: $phone \n Email: $email \n Skype: $skype \n Membership: $membership \n Member Detail: $memberdetail";
$recipient = "[email protected]";
$subject = "Eng2Skype Online Register";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
/* RESPONSE TO Eng2Skype's email */
echo '<img src="../images/subpages/eng2skype.png">';
echo "<br>";
echo "<br>";
echo "Thank you for registering with English2Skype program. Please check your email for downloadable manual and application forms.";
echo "<br>";
echo "<br>";
echo "<a href='../index.php' style='text-decoration:none; color:#df2590;'> Return Home</a>";
echo "<br>";
echo "<br>";
echo "Love us, Follow us at";
echo '<img src="../images/subpages/eng2skype-poster.png" width="200" height="200" />';
?>
你可以写一个HTML电子邮件。您需要设置标题,只需添加一个链接到HERE。
$mailheader = 'MIME-Version: 1.0'."\r\n";
$mailheader .= 'Content-type: text/html; charset=iso-8859-1'."\r\n";
$mailheader .= 'From: '.$email." \r\n";
$autoreply="Thank you for registering with English2Skype™ \n\nPlease click <a href='http://your.download.link'>HERE</a> to download our manual and application forms \n\n English2Skype™ team";