Notice: Undefined index: ORDER in C: \ xampp \ htdocs \ Form-Office \ modify.php on line 11

0

I have days with this error and I really do not know how to solve it, if someone knows you can modify my code or I'll pass the complete project so you can see where I got everything

<html>
<head>
<title>Modificar.php</title>
</head>
<link rel="stylesheet" type="text/css" href="estilomenu.css">
<link rel="stylesheet" type="text/css" href="EstiloRegistro.css">
<?php
include"cn.php";
include"encabezado.php";
include"cuerpa.php";
$query = "select * from ttecnicas WHERE ORDEN='".$_POST["ORDEN"]."'";
$resultado = mysqli_query($conexion,$query) or die ("error....".mysqli_error());
if (mysqli_num_rows($resultado)> 0)
{
while($Rs=mysqli_fetch_array($resultado)) {
?>
<body>
<form method="post" class="form-register" onSubmit="return validar();" action="modifica1.php">                  
<h2 class="form-title">Formulario de Modificaci&oacute;n</h2>
   <div class="contenedor-inputs">
         <input type="text" id="ORDEN" name="ORDEN" placeholder="Orden" class="input-48" value="<?php echo $Rs['ORDEN']; ?>" readonly='true' required>
         <input type="text" id="CODIGO" name="CODIGO" placeholder="C&oacute;digo" class="input-48" value="<?php echo $Rs['CODIGO']; ?>" readonly='true' required>
         <input type="text" id="MATERIAL" name="MATERIAL" placeholder="Material" class="input-48" value="<?php echo $Rs['MATERIAL']; ?>" readonly='true' required>
         <input type="text" id="LOTE" name="LOTE" placeholder="Lote" class="input-48" value="<?php echo $Rs['LOTE']; ?>" readonly='true' required>
         <input type="text" id="CANTIDAD" name="CANTIDAD" placeholder="Cantidad" class="input-48" value="<?php echo $Rs['CANTIDAD']; ?>" readonly='true' required>
         <Select id="DPTO" name="DPTO" placeholder="Departamento" class="input-48" value="<?php echo $Rs['DPTO']; ?>" readonly='true' required>
                          <OPTION VALUE="0">Departamento</OPTION>
                          <OPTION VALUE="1">10</OPTION>
                          <OPTION VALUE="2">13</OPTION>
                          <OPTION VALUE="3">20</OPTION>
                          <OPTION VALUE="4">30</OPTION>
                          <OPTION VALUE="5">40</OPTION>
                          <OPTION VALUE="6">50</OPTION>
                          <OPTION VALUE="7">80</OPTION>

         </Select>
         <input placeholder="Fecha de Liberaci&oacute;n" class="textbox-n" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="F_LIBERACION" class="input-48" value="<?php echo $Rs['F_LIBERACION']; ?>" readonly='true' required>
         <input placeholder="Fecha de Solicitud" class="textbox-n" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="F_SOLICITUD" class="input-48" value="<?php echo $Rs['F_SOLICITUD']; ?>" readonly='true' required>
         <input placeholder="Fecha de Impresi&oacute;n" class="textbox-n" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="F_IMPRESI_N" class="input-48" value="<?php echo $Rs['F_IMPRESI_N']; ?>" readonly='true' required>
         <input type="text" id="No_DE_HOJAS" name="No_DE_HOJAS" placeholder="N&uacute;mero de Hojas" class="input-48" value="<?php echo $Rs['No_DE_HOJAS']; ?>" readonly='true' required>
         <input type="text" id="REIMPRESION" name="REIMPRESION" placeholder="Re-Impresi&oacute;n" class="input-48" value="<?php echo $Rs['REIMPRESION']; ?>" readonly='true' required>
         <input type="text" id="RESPONSABLE_IMPRESI_N" name="RESPONSABLE_IMPRESI_N" placeholder="Responsable Impresi&oacute;n" class="input-48" value="<?php echo $Rs['RESPONSABLE_IMPRESI_N']; ?>" readonly='true' required>
         <input placeholder="Fecha de Planificaci&oacute;n" class="textbox-n" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="FECHA_DE_PLAN" class="input-48" value="<?php echo $Rs['FECHA_DE_PLAN']; ?>" readonly='true' required>
         <input placeholder="Fecha Real" class="textbox-n" type="text" onfocus="(this.type='date')" onblur="(this.type='text')" id="Fecha_de_F_E_Real" class="input-48" value="<?php echo $Rs['Fecha_de_F_E_Real']; ?>" readonly='true' required>
        <input type="submit" value="Modificar" class="btn-enviar">           
       <input type="reset" value="Limpiar" class="btn-limpiar">
   </div>
</form>
<?php
}
}else{
echo "No Se Pudo Modificar...";
}
mysqli_close($conexion);
?>
</body>
</html>

here is the above of the registration form where I want him to take my variable

<?PHP
include "cn.php";
$ORDEN = $_POST ["ORDEN"];
$CODIGO = $_POST ["CODIGO"];
 $MATERIAL = $_POST ["MATERIAL"];
 $LOTE = $_POST["LOTE"];
 $CANTIDAD = $_POST["CANTIDAD"];
 $DPTO = $_POST["DPTO"];
 $F_LIBERACION = $_POST["F_LIBERACION"];
 $F_SOLICITUD = $_POST["F_SOLICITUD"];
 $F_IMPRESI_N = $_POST["F_IMPRESI_N"];
 $No_DE_HOJAS = $_POST["No_DE_HOJAS"];
 $REIMPRESION = $_POST["REIMPRESION"];
 $RESPONSABLE_IMPRESI_N = $_POST["RESPONSABLE_IMPRESI_N"];
 $FECHA_DE_PLAN = $_POST["FECHA_DE_PLAN"];
 $Fecha_de_F_E_Real = $_POST["Fecha_de_F_E_Real"];
// Consulta para Insertar
 $insertar = "INSERT INTO ttecnicas(ORDEN, CODIGO, MATERIAL, LOTE, CANTIDAD, DPTO, F_LIBERACION, F_SOLICITUD, F_IMPRESI_N, No_DE_HOJAS, REIMPRESION, RESPONSABLE_IMPRESI_N, FECHA_DE_PLAN, Fecha_de_F_E_Real) VALUES ('$ORDEN', '$CODIGO', '$MATERIAL', '$LOTE', '$CANTIDAD', '$DPTO', '$F_LIBERACION', '$F_SOLICITUD', '$F_IMPRESI_N', '$No_DE_HOJAS', '$REIMPRESION', '$RESPONSABLE_IMPRESI_N', '$FECHA_DE_PLAN', $Fecha_de_F_E_Real)";
//Ejecutar Consulta
$resultado = mysqli_query($conexion, $insertar);
if (!$resultado) {
 echo '<script>
        alert("Error al Registrar");
        window.history.go(-1);
        </script>';
} else {
echo '<script>
        alert("Registrado Exitosamente");
        window.history.go(-1);
        </script>';
}
//Cerrar Conexion
mysqli_close($conexion);
?>
    
asked by Gabriel Castellanos 07.06.2018 в 16:27
source

0 answers