admin管理员组文章数量:1320592
I have a php file, let's call it form.php . It's embedded in wordpress as a code block. The form is as below.
<FORM NAME="entitynames" method='POST' id='entity_form'>
<INPUT method='text' name='entity' style='width:20em' >
<INPUT type="submit" value="Submit" >
</FORM>
It's working as expected, calling the form.php with $_SERVER['REQUEST_METHOD'] == 'POST'and embedding the results in the wordpress container. My question is this expected behavior? I thought I would have to use ajax to prevent the page from being redirected to form.php. Why is the results of form.php showing up in the container?
本文标签: formspost request does not redirect but why
版权声明:本文标题:forms - post request does not redirect but why 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742071372a2419143.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论