bootstrap表单不发送post方法

时间:2017-05-18 00:16:36

标签: http-post html-form-post twitter-bootstrap-form

我的bootstrap表单有bug,当我点击提交按钮时,POST方法永远不会触发,表单处于循环周期,我需要将用户输入的数据发送到“addsoporte.php”脚本,但它永远不会发生了,我的代码就是这样:

<?php
session_start();
if(@$_SESSION[ 'autorizado' ] != "si"){
    session_unset();
    session_destroy();
    header("Location: index.php");
}
else{
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Agregar Solicitud de Soporte</title>
    <!-- Bootstrap CSS File  -->
    <link rel="stylesheet" type="text/css" href="bootstrap-3.3.5-dist/css/bootstrap.css"/>
    <LINK tpe='text/css' rel='StyleSheet' href='marn.css'>
</head>
<body>
    <div class='container'>
        <div class='row'>
            <div class="col-md-6 col-md-offset-3">
                <h1 class="page-header text-center">Solicitud de Soporte Tecnico</h1>
                <form class="form-horizontal" id="nuesoporte-form" role="form" method="post" action "addsoporte.php">
                    <div class="form-group">
                        <label for="txtdessop" class="col-sm-2 control-label">Descripcion</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" rows="5" name="txtdessop" 
                                placeholder="Descripcion de la Solicitud del Soporte"></textarea>
                            </div>
                    </div>

                    <div class="form-group">
                        <label for="txtmodsop" class="col-sm-2 control-label">Modulo Afectado</label>
                            <div class="col-sm-10">
                                <select class="form-control" id="txtmodsop">
                                        <option hidden>Seleccione...</option>
                                        <option>Estadisticas</option>
                                        <option>Indicadores</option>
                                        <option>Inv. Estadisticas</option>
                                        <option>Metodologia</option>
                                        <option>Glosario</option>
                                        <option>Publicaciones</option>                                                                                                                                                                                                      
                                </select>
                            </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-10 col-sm-offset-2">
                            <a href='javascript: history.go(-1)' id="cancelar" name="cancelar" class="btn btn-warning">Cancelar</a>
                            <input type="submit" name="cmdenviarsoporte" value="Enviar Solicitud" class="btn btn-primary btn-clock" />                                              
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>     
</html>
<?php
}
?>

欢迎您的建议,提前致谢

1 个答案:

答案 0 :(得分:0)

也许到了晚了。但你忘记了“行动”背后的“=”。