表单在PHP和Bootstrap中没有传递变量,只是遵循操作路径


Form in PHP and Bootstrap is not passing variables , is just following the path of action

这是HTML代码:

<form class="navbar-form navbar-right" method="post" action="http://ead.montepage.com.br/login" id="loginbar" name="loginbar">
      <input type="hidden" name="postado" value="971519838881353a18b7069f3f8d40e8" />
        <div class="form-group">
          <input type="text" placeholder="E-mail" name="email" class="form-control" />
        </div>
        <div class="form-group">
          <input type="password" placeholder="Senha" name="senha" class="form-control" />
        </div>
        <button type="submit" class="btn btn-primary" value="Acessar">Acessar</button>
      </form>

这是操作文件上的PHP代码:

<?php
    print_r($_POST);
    if(isset($_POST['postado']))
        require_once('action_post.php');
?>

表单位于url的顶部:http://www.ead.montepage.com.br/

我不知道发生了什么,已经在谷歌上搜索了,没有发现类似的

感谢您的帮助。

您有一个重定向设置,用于从非www重定向到www url。此重定向导致发布数据丢失。

将您的操作更改为:

action="http://www.ead.montepage.com.br/login"

作为临时修复,然后修复您的重写规则以发送邮件数据:

是否可以重定向帖子数据?