我已经创建了一个表单。用户将提交表单并将获得链接的电子邮件。点击链接后,我必须在URL上显示ID,你能帮我吗?如何在点击链接在PHP后显示URL上的ID?
if (isset($result->num_rows) > 0) {
while($row = $result->fetch_assoc()) {
$User_id = $row['User_id'];
}}
echo $User_id;// I am able to display id here
$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<a href='http://localhost/in/abc.php?user_id='" .$User_id. ">Click here</a>
</body>
</html>
";
我的URL获得输出
http://localhost/in/abc.php?user_id=
你在工作的首位使用“$ USER_ID”,但随后被之后使用“$ User_id ** 1 **”。 – Iskar