你是什么意思,通过获取链接名称?数据库中的链接字段是否与名称一起检索?
这是基于我从你的含糊不清的问题百思不得其解:
你这是从数据库中检索名称。也从数据库中检索id。将这些名称显示为指向不同PHP页面的链接。让我们将php页面命名为user.php。这样的链接将是:
$name = "You go this name from USER TABLE";
$id = "YOU GOT THIS ID FROM USER TABLE";
<a href="/user.php?userID=<?php echo $id ?>">$name</a>
现在,在您user.php的,retrive的ID
$name = $_GET["userID"]; // make sure you do some parsing to avoid sql injection
// Retrieve all the information about this guy like email address etc from the database
// put everything into a form with a Confirm button which when clicked will mail it to the individual
// I think you should be able to figure out the mail part.
那你需要知道什么? – Shubham
过于宽泛。你究竟在问什么? –
我只需要知道如何以更简单的方式做到这一点。对不起,如果它很混乱。 –