Ver Mensaje Individual
  #1 (permalink)  
Antiguo 01/08/2011, 10:35
thedarking
 
Fecha de Ingreso: julio-2011
Ubicación: Argentina
Mensajes: 38
Antigüedad: 13 años, 7 meses
Puntos: 0
Pregunta Problema con formulario

hola Gente ...es la primera vez en este foro n..n

tngo una duda como tomo los datos del radio pero agregandolos a la misma tabla de informacion...

me refiero a q agrego el msj seleccion,opcion,telefono y E-Mail...pero no se tomar los valores del radio...

Help Plz n..n
aki van los datos:

index.html
Código HTML:
<html>
<body>
<center><br><font size="5" face="Verdana, Arial, Helvetica, sans-serif"><strong>Bienvenido a l2masterpiece</strong></font></br>
</center>
<center> <br><p><br><p><br><p><br><p><br><p><br><p>
<a href="formulario.php">
<button><strong>Enviar PM</strong></button>
</a>
</center>
<center> <br>
<a href="modificar-usuario.php">
<button><strong>Modificar PM</strong></button>
</a>
</center>

</body>
</html> 
y aca los archivos php's:
Código PHP:
<html>
<
body>
<
br><center>Formulario(Env&iacute;o de MP)</center></br>
<
form action="insertar-registro.php" method="POST">
            
            
Mensaje:<textarea name="mensaje" cols="30" rows="3"></textarea><p>
            
            
Selecci&oacute;n:    <input name="col" type="radio" value="si"/>    si                &nbsp;&nbsp;
                                <
input name="col" type="radio" value="no" checked/>    no        &nbsp;&nbsp;
                                <
input name="col" type="radio" value="nose"/>    nose        &nbsp;&nbsp;<p>
            
            
Opci&oacute;n:        <input type="checkbox" name="opc" value="ok">OK</input>&nbsp;&nbsp;
                                <
input type="checkbox" name="opc" value="nada" checked>Nada</input>&nbsp;&nbsp;<p>
            
            
Tel&eacute;fono:    <input type="text" name="telefono">Acu&eacute;rdate de usar solo n&uacute;meros<p>
            
            
E-Mail:                <input type="text" name="email"><p>
<
input name="enviar" type="submit" value="enviar">
<
input type="reset" name="limpiar">
</
form>
</
body>
</
html
Código PHP:
<?php

include"conexion.php";


$col 'col';
if (
$col == '1') {
  
$si;
} elseif (
$col == '2') {
 
$no;
} elseif (
$col == '3') {
  
$nose;







mysql_query("insert into clientesl2(mensaje, telefono, email) values ('{$_REQUEST['mensaje']}','{$_REQUEST['telefono']}','{$_REQUEST['email']}')");


 

?>
<html>
    <body>
        <b><hl><center><a href="index.html">indice</a></center></hl></b><br>
    </body>
</html>