问题是这样的:
需要点击某个链接,然后跳转到一个页面,但是跳转到那个页面的时候,我必须知道是由谁跳转的。
类似这样。
echo "<a href = ''> $name1 </a>";
echo "a href = ''> $name2 </a>";
然后点击链接跳转的时候,我必须知道是$name1跳转的还是$name2跳转的。
分不多,各位有人知道吗。。
需要点击某个链接,然后跳转到一个页面,但是跳转到那个页面的时候,我必须知道是由谁跳转的。
类似这样。
echo "<a href = ''> $name1 </a>";
echo "a href = ''> $name2 </a>";
然后点击链接跳转的时候,我必须知道是$name1跳转的还是$name2跳转的。
分不多,各位有人知道吗。。
在跳转的页面用get取这个值
echo "<a href='url.php?source={$name1}'>{$name1}</a>";
echo "<a href='url.php?source={$name2}'>{$name2}</a>";
while ( $row = mysql_fetch_row($result) )
{
echo "<tr>";
echo "<th scope='row'>普通用户</th>";
echo "<td><a hrer ='uer.php'> $row[2]</a></td>";
echo "<td>$row[3]</td>";
echo "<td>$row[4]</td>";
echo "<td>$row[5]</td>";
echo "<td>$row[6]</td>";
echo "<td>$row[7]</td>";
echo "</tr>";
}