codigo php(este el lo que tengo,nose cual es el problema :s)
Código PHP:
Ver original
<?php include("conexion.php"); { if($_POST["guardar"]=="guardar") { $sql="insert into probando_radio (CODIGO,OPCION) values (".$_POST["codigo"].",'".$_POST["opcion"]."')"; { echo "ingreso correcto"; } else { echo "ingreso incorrecto".$sql; } } } { if($_POST["codigo"]!="") { $sql="select * from probando_radio where CODIGO='".$_POST["codigo"]."'"; } } ?>
codigo HTML
Código HTML:
Ver original
<form id="form1" name="form1" method="post" action=""> <table width="100%" border="1"> <tr> <input name="opcion" type="radio" value=" <?php if (isset($negocio["OPCION"])) { echo $negocio["OPCION"] ;}?>"/> <input name="opcion" type="radio" value="<?php if (isset($negocio["OPCION"])) { echo $negocio["OPCION"] ;}?>"/> <input name="codigo" type="text" id="codigo" value="<?php if (isset( $_POST["codigo"])) echo $_POST["codigo"] ?>" onchange="submit();"/> </tr> <tr> </tr> </table> </form>
AYUDA POR FA !!