如何屏蔽 表单提交过来的数据?
一个表单如下
<input type="text" name="key" id="key" action="index.php"/>
<input name="action" type="hidden" id="action" value="so" />
<input type="submit" name="button" id="button" value="提交" />
index.php 在接收的时候,地址栏会出现
index.php?key=11&action=so&button=%CC%E1%BD%BB ,其中 &action=so&button=%CC%E1%BD%BB 是我不需要的,如何屏蔽掉?
<input type="text" name="key" id="key" action="index.php"/>
<input name="action" type="hidden" id="action" value="so" />
<input type="submit" name="button" id="button" value="提交" />
index.php 在接收的时候,地址栏会出现
index.php?key=11&action=so&button=%CC%E1%BD%BB ,其中 &action=so&button=%CC%E1%BD%BB 是我不需要的,如何屏蔽掉?
作者: pengboy 发布时间: 2011-06-14
把 <input name="action" type="hidden" id="action" value="so" />
<input type="submit" name="button" id="button" value="提交" />
去掉value就行了
<input name="action" type="hidden" id="action" />
<input type="submit" name="button" id="button" />
<input type="submit" name="button" id="button" value="提交" />
去掉value就行了
<input name="action" type="hidden" id="action" />
<input type="submit" name="button" id="button" />
作者: yaoxin125 发布时间: 2011-06-14
改post
作者: helloyou0 发布时间: 2011-06-14
同意楼上,post方式提交,地址栏就没有了。
作者: superfans98 发布时间: 2011-06-14
<form action='xxx.php' method='post'>
作者: superfans98 发布时间: 2011-06-14