如何获得表单的参数值???
<form name="form1" method="post" action="index.php?action=add">
<input name="category_id" type="text" id="category_id">
<input name="name" type="text" id="name">
<input type="submit" name="Submit" value="提交">
</form>
我提交表单到index.php 的时候如何根据“index.php?action=add ” 里action这个值来判断接下来的操作??
我知道ASP里是这样做的:
if request("action")="add" then
………………
elseif request("action")="delete" then
……………………
end if
但是不知道PHP里是怎么弄的???
请各位大侠指教!谢谢