![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/07/2009, 21:13
|
| | Fecha de Ingreso: julio-2009
Mensajes: 7
Antigüedad: 15 años, 7 meses Puntos: 0 | |
Concatenar 2 campos en un select y pasar un 3º por parametro url <?php $inc=include("conexion.php");//la conexion está guardada en $link
mysql_select_db(Base, $link);
?>
<form action="" method="get">
<label for="select"></label>
<select name="select" id="select">
<option value="<?php mysql_query('SELECT Codigo FROM pacientes',$link)"><?php mysql_query('SELECT CONCAT (Apellido," ",Nombre)FROM pacientes',$link);?></option>
</select>
<label for="Submit"></label>
<input type="submit" name="Submit" value="Enviar" id="Submit">
</form>
Si alguien pudiera ayudarme le estaría eternamente agradecido. Espero aprender lo suficiente para algun día devoverles el favor............
Gracias Anticipadas |