Last active
December 27, 2015 08:09
-
-
Save ChrisGehm/7294417 to your computer and use it in GitHub Desktop.
formgenerar.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include("../includes/connect.php"); | |
if(!isset($_GET['id'])) | |
{ | |
exit("Error"); | |
} | |
$id = $_GET['id']; | |
$query = "SELECT Id, Fecha, Cliente, Para, Concepto, Responsable, Enviado_Por, Receptor, Observaciones | |
FROM envio | |
WHERE id = $id | |
LIMIT 1"; | |
// ejecuto la consulta | |
$envio = mysql_query($query); | |
// veo si existe | |
if($envio) | |
{ | |
$f = mysql_fetch_array($envio); | |
} | |
else | |
{ | |
exit("No se encontro"); | |
} | |
?> | |
<table> | |
<form method="POST" action="generarrecibo.php" enctype="multipart/form-data"> | |
<input type="hidden" name="id" value=<?php echo $id;?> /> | |
<td>Numero</td> | |
<td>Fecha</td> | |
<td>Cliente</td> | |
<td>Para</td> | |
<td>Concepto</td> | |
<td>Responsable</td> | |
<tr> | |
<td><input id="id" type="text" name="id" readonly value=<?php echo $f['Id']; ?> /></td> | |
<td><input id="fecha" type="text" name="fecha" readonly value=<?php echo $f['Fecha'];?> /></td> | |
<td><textarea name="cliente" readonly><?php echo $f['Cliente'];?></textarea></td> | |
<td><textarea name="para" ><?php echo $f['Para'];?></textarea></td> | |
<td><textarea name="concepto"><?php echo $f['Concepto'];?></textarea></td> | |
<td><input id="responsable" type="text" name="responsable" readonly value=<?php echo $f['Responsable']; ?> /></td> | |
</tr> | |
<td><input type="submit" value="Generar" > | |
</form> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment