php - 如何解决 HTTP/1.1 302 Found error when trying to get a contents of a form in php?

标签 php forms apache http-status-code-302 http-1.1

<分区>

我的应用程序有一个错误,当我尝试提交包含大量信息的表单(POST 方法)时,接收信息并重定向到的文件发生 HTTP/1.1 302 Found 错误我的索引

html代码和php都很简单,但是信息量很大

表单代码

    <form name="resena" action="consultas/resena.php" method="post" enctype="multipart/form-data">
<fieldset>
    <legend><?php echo $titulo; ?> una reseña</legend>
    <br /><br /><label for="titulo">Título</label><input type="text" name="titulo" id="titulo" size="45" maxlength="100" value="<?php echo $con["titulo"]; ?>" placeholder="hasta 70-100 caracteres o menos" titulo="hasta 70-100 caracteres o menos" onkeyup="texto(titulo)" required />
    <br /><br /><label for="fecha">Fecha</label><input type="text" name="fecha" id="fecha" size="12" maxlength="10" value="<?php echo $con["fecha"]; ?>" placeholder="Fecha" required="required" readonly="readonly" /><input name="f_b" type="button" id="f_b" value="...">
    <br /><br /><label for="resumen">Resumen</label><textarea name="resumen" id="resumen" cols="60" rows="4" wrap="hard" onkeyup="texto_tarea(resumen);"><?php echo $con["resumen"]; ?></textarea>
    <br /><br /><label for="eventos">Evento relacionado</label><select name="eventos" title="eventos"><option value=""></option><?php $s_ev=mysql_query("SELECT * FROM eventos"); while($v_ev=mysql_fetch_array($s_ev)){?><option value="<?php echo $v_ev["id_prod"];?>" <?php if($evento==$v_ev["id_ev"]){?>selected="selected"<?php } ?>><?php echo $v_ev["titulo"]?></option><?php } ?></select>
    <br /><br /><input type="submit" name="Aceptar" value="Aceptar" class="bot" style="float:left;" />&nbsp;&nbsp;<input type="reset" name="Vaciar Formulario" value="Vaciar Formulario" class="bot" />
</fieldset>
</form>
<?php 
    include("ckeditor.php");
    $CKEditor = new CKEditor();
    $CKEditor->basePath = '/edicion/';
    $CKEditor->replaceAll();
?>
<script>Calendar.setup({inputField:"fecha", ifFormat:"%Y/%m/%d",button:"f_b"});</script>

接受者只有对数据库的查询

最佳答案

302 不是错误,而是重定向到临时位置。 您可以将请求重新发送到响应 header 中收到的新位置。

关于php - 如何解决 HTTP/1.1 302 Found error when trying to get a contents of a form in php?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10252145/

相关文章:

php - 将 PHP 添加到 Apache Web 服务器中?

php - 在 php 中向我的数据库发送请求

php - Eloquent "select"方法不适用于使用 "with"方法

javascript - jQuery 中的复杂表单验证

android - 如何解决库冲突 (apache commons-codec)

php - 使 CER 证书只能通过 Apache2 Web 服务器上的 CURL 访问

php - 如何在工具提示中显示按钮

PHP Mysqli 显示计数总和的结果

php - 使用字符串引用时,只有字符串的第一个单词出现在 HTML 表单中

javascript - 根据下拉选择将值分配给单选按钮