Skip to content

Instantly share code, notes, and snippets.

@ChrisGehm
Created January 23, 2014 18:55
Show Gist options
  • Save ChrisGehm/8584592 to your computer and use it in GitHub Desktop.
Save ChrisGehm/8584592 to your computer and use it in GitHub Desktop.
<form method="post" action="addenvio.php">
<tr>
<td>Fecha *</td>
<td>Cliente *</td>
<td>Para</td>
<td>Concepto *</td>
<td>Responsable *</td>
<td>Enviado Por *</td>
<td>Receptor</td>
<td>Observaciones</td>
</tr>
<tr>
<td><input class="text1" type="date" name="fecha"></td>
<td>
<input type="text" class="text1" name="cliente" value="" autocomplete="OFF" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
<div class="suggestionsBox" id="suggestions" style="display: none;">
<div class="suggestionList" id="autoSuggestionsList">
</div>
</div>
</td>
<td><input class="text1" type="text" name="para"></td>
<td><textarea class="text1" name="concepto">Concepto</textarea></td>
<td>
<?php
//Inicializo una variable para guardar el ComboBox.
$combo2 = "<select class='text1' style='width:99%' name=responsable>\n";
while($row2=mysql_fetch_array($result2))
{
//concateno y doy el value
$combo2 .= " <option value='".$row2['Nombre'];
//concateno e inserto el dato que se va a mostrar
$combo2 .= "'>".$row2['Nombre']."</option>\n";
}
//concateno y cierro el select
$combo2 .= "</select>\n";
//muestro el combo
echo $combo2;
?>
</td>
<td><input class="text1" type="text" name="enviadopor"></td>
<td><input class="text1" type="text" name="receptor"></td>
<td><textarea class="text1" name="observaciones"></textarea></td>
</tr>
<tr>
<td><input class="boton1" type="submit" name="Buscar" value="Agregar" /></td>
</tr>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment