Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/03/2010, 10:00
NaikiOwned
 
Fecha de Ingreso: agosto-2009
Mensajes: 110
Antigüedad: 14 años, 8 meses
Puntos: 1
Ayuda con el valor de radioButton

les cuento tengo una funcion ajax con los que datos de un formulario y todos pasan xevere menos el valor deel radiobutton ... no se que hago mal quizas algo se me esta pasando.

Código PHP:
<form name="frm" onSubmit="return false">
        <input type="radio" name="radio"  value="1" />
        <?php echo $rowNot['equipo1'?></label><br />
        <input type="radio" name="radio"  value="2" />
        <?php echo $rowNot['equipo2']; ?></label><br />  
        <input type="text" name="cantidad" id="cantidad" /><br />

       <input name="Submit" type="submit" onClick="recibeids('apuesta2.php','a='+frm.radio.value,'b='+frm.cantidad.value,'c=<?php echo $not_ID?>','','apuesta');" value="Apostar" />
    </form>

aqui se recibe

Código PHP:
<?php 
session_name
('tzLogin');
session_set_cookie_params(2*7*24*60*60);
session_start();
require(
'Connections/db-cnx.php');
$apuesta $_GET['a'];
$cantidad $_GET['b'];
$not_ID =  $_GET['c'];
    
$sql ="INSERT INTO detalle_a(id,usr,id_a,cantidad,aposto,estado_a) 
    VALUES("
.$_SESSION['id'].",'".$_SESSION['usr']."',".$not_ID.",".$cantidad.",".$apuesta.",1)";
    
$res mysql_query($sql) or die (mysql_error());
    
    echo 
"Tu apuesta fue realizada!!!"
?>
el mensaje que me bota es este:

Unknown column 'undefined' in 'field list'