Heim  >  Artikel  >  Web-Frontend  >  一个表单,如何在不打开新窗口的情况下提交_html/css_WEB-ITnose

一个表单,如何在不打开新窗口的情况下提交_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:14:181030Durchsuche

这个表单,在页面中非得打开个新窗口才能运行,也给返回,
强制单页面,这个post却不执行了....哎
好郁闷

<form action="" method="POST" target="_blank">  <tr class="firstalt">	<td align="center"><b>xxxxx系统</b></td>  </tr>  <tr class="secondalt">		<td align="left"  ><br><ul><li>您的ip是:127.0.0.1 请注意您的行为,因此带来的风险将由您承担!</li></ul></td>  </tr>  <tr class="firstalt">	<td align="center" height=40  >验证号: <input name="code" value="" type="text"  class="input" size="100" ><input name="" value="提交" type="submit"  class="input" size="30" ><input name=action type=hidden value=code></td>  </tr></table>	</td></tr></form>


就是这个表单, 下面加上了 一句 
因为要在php中
if ($POST['action'] == "code") 这样使用
所以..

但问题貌似不在这里


回复讨论(解决方案)

你把

<form action="" method="POST" target="_blank">

修改为
<form action="" method="POST" target="_self">


即可,哈哈,分是我的啦

非常感谢!

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn