【发布时间】:2019-11-09 03:25:38
【问题描述】:
我正在从搜索栏中获取电子邮件并将其存储在 $first 变量中。后来我想让这个变量通过 href=cn.php 属性传递。我该怎么做?另请注意,我在这里使用的是引导程序,但跳过了包含文本。
<?php
$first = $_GET['email'];
?>
<!doctype html>
<html lang="en">
<div class="dropdown text-center">
<br><br>
<br><br>
<button type="button" class="col-4 btn btn-primary dropdown-toggle" data-
toggle="dropdown">Select the Subject</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="CN.php?email=' . $first . '">Computer
Networks</a>
</div>
</div>
</body>
</html>
【问题讨论】: