Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/10/2010, 20:04
rakshaka
 
Fecha de Ingreso: mayo-2009
Mensajes: 166
Antigüedad: 15 años
Puntos: 2
Respuesta: Ayuda con formulario php que envia radio automático

Para ser un poco mas explicativo :P

Asi queda un ejemplo de consulta...

name="1" es el ID que recibe de AlojamientoID que le dice que la estancia pertenece a un alojamiento. Osea, estancia es un submenu de alojamiento básicamente

Como vemos tenemos name 1 y name 2 que poseen 2 opciones cada una.

Código HTML:
<h3>ESTANCIA 10/05/2009 al 13/05/2009</h3><label>
    <input type="radio" name="1" value="CIRCUITO: 22-10-2010 - 25-10-2010
CRUCERO NILO - NEFTIS / FLORANCE / MOTONAVE 5***** " id="Servicio A" checked>Servicio A<br>CIRCUITO: 22-10-2010 - 25-10-2010
CRUCERO NILO - NEFTIS / FLORANCE / MOTONAVE 5***** </label>
    <input name="estanciaID" type="hidden" id="nombre" value="1">
    <br><label>
    <input type="radio" name="1" value="CIRCUITO: 22-10-2010 - 25-10-2010
CRUCERO NILO - NEFTIS / FLORANCE / MOTONAVE 5***** " id="Servicio B" checked>Servicio B<br>CIRCUITO: 22-10-2010 - 25-10-2010
CRUCERO NILO - NEFTIS / FLORANCE / MOTONAVE 5***** </label>
    <input name="estanciaID" type="hidden" id="nombre" value="2">

    <br><h3>CIRCUITO 13/05/2009 al 15/05/2009</h3><label>
    <input type="radio" name="2" value="CIRCUITO: 22-10-2010 - 25-10-2010
CRUCERO NILO - NEFTIS / FLORANCE / MOTONAVE 5***** " id="Servicio A" checked>Servicio A<br>CIRCUITO: 22-10-2010 - 25-10-2010
CRUCERO NILO - NEFTIS / FLORANCE / MOTONAVE 5***** </label>
    <input name="estanciaID" type="hidden" id="nombre" value="3">
    <br><label>
    <input type="radio" name="2" value="CIRCUITO: 22-10-2010 - 25-10-2010
CRUCERO NILO - NEFTIS / FLORANCE / MOTONAVE 5***** " id="Servicio B" checked>Servicio B<br>CIRCUITO: 22-10-2010 - 25-10-2010
CRUCERO NILO - NEFTIS / FLORANCE / MOTONAVE 5***** </label> 
El tema es que esos ids, tengo que hacer que luego los busque en la base de datos para poder ejecutarlos.


En este caso hay dos grupos de radios distintos pero ese numero va a variar, pueden ser mas, y necesito hacer que busque lo que seleccionó el usuario para cada grupo en la base de datos.