我正在尝试在<a>
代码内发送电子邮件。但目的地未收到该电子邮件。
发件人
<a href='http://localhost/Trying/search_cus.php?emailFromCus=$email'>Search Medicin</a>
接收机
`
<?php
if(isset($_POST['emailFromCus'])){
$con = mysqli_connect("localhost", "root", "") or
die(mysqli_error($con));
mysqli_select_db($con,"Ajmal") or die(mysqli_error($con));
$cusEmail=$con->real_escape_string($_GET['emailFromCus']);
echo "<script>alert($cusEmail);</script>";
}
else{
echo "error";
}
?>
`
它将进入其他条件......要做什么?