我想调用同一页里的不同函数,但是调用不到函数啊。也没有提示哪里出错。求求各位帮帮忙了

function main_menu($title)
{
include("header.php");
echo<<<ENDIT
<table border="1" cellspacing="1" cellpadding="1" width="90%">
<font size=4 >
<tr>
<td colspan="3">
<center>
$title
</center>
</td>
</tr>
<tr>
<td width="33%">
<center>
<a href="?action=add">发布新闻</a>
</center>
</td>
<td width="33%">
<center>
<a href="?action=edit">编辑新闻</a>
</center>
</td>
<td width="33%">
<a href="?action=del">删除新闻</a>
</center>
</td>
</tr>
</font>
</table>
ENDIT;
include("footer.php");
}
?>//

森栏
浏览 78回答 2
2回答

梦里花落0921

$_GET['action'];

POPMUISE

&nbsp;if($_GET['action'] == 'add'){&nbsp; &nbsp; &nbsp;.... }else if($_GET['action'] == 'edit'){&nbsp; &nbsp; &nbsp;... }else if($_GET['action'] == 'del'){&nbsp; &nbsp; &nbsp;... }else{&nbsp; &nbsp; &nbsp;//请求错误代码 } 这个是取值来判断行为,不知道你说的函数是什么意思?
打开App,查看更多内容
随时随地看视频慕课网APP