我有一个带有文本输入框的html表单。我想知道如何识别表单中的特定输入。例如输入命令:PHP:pregmatch输入字段
<input type="text" name="action" value="bookmark http://google.com" />
<?php
if ($command == "goto"):
// go to website X
elseif ($command == "bookmark"):
// bookmark website X
else:
// something else
endif;
?>
感谢您的回答! – 2011-12-20 22:53:43