我需要帮助因为我不知道怎么翻译是html到php好
echo "<li class='list'><a class='menuItem' name='link1' href='Registrate.php?var="$_SESSION["DepartmentSession"] ="Admisiones""> Admisiones </a></li>";
答案 0 :(得分:1)
检查这个
echo "<li class='list'><a class='menuItem' name='link1' href='Registrate.php?var=".$_SESSION['DepartmentSession']."=Admisiones'> Admisiones </a></li>";
答案 1 :(得分:0)
确保您的报价正确无误。从我所看到的。您的代码包含无效的报价重叠。
echo "<li class='list'><a class='menuItem' name='link1' href='Registrate.php?var=".$_SESSION["DepartmentSession"] ."='Admisiones' "> Admisiones </a></li>";
或最安全的方法是在html中编写
<li class='list'>
<a class='menuItem' name='link1' href='Registrate.php?var=<?php echo $_SESSION["DepartmentSession"] ?>=Admisiones' > Admisiones </a>
</li>
答案 2 :(得分:0)
检查一下......
echo "<li class='list'><a class='menuItem' name='link1' href='Registrate.php?var=".$_SESSION['DepartmentSession']."=Admisiones'> Admisiones </a></li>";