Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/12/2009, 18:56
mrdu3nd3
 
Fecha de Ingreso: diciembre-2009
Mensajes: 15
Antigüedad: 14 años, 5 meses
Puntos: 0
Formulario php y checkbox

Hola tengo un formulario simple pero deseo que me ayuden como puedo ingresar varias opciones checkbox... es como elegir de 10 opciones 5 y esas 5 opciones elegidas me llegue a mi email con el mensaje del formulario.

No se donde modificarlos en el pedido.htm o enviar.php aver si me ayudan con esos codigos los necesito urgente gracias...

pedido.htm

Código PHP:
<html>

<
head>
<
script language="javascript">
 
window.onload = new Function(null)
</script>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Radio IRC Lima ® Pedidos</title>
</head>

<body bgcolor="#000000">
<form id="form1" name="form1" method="post" action="enviar.php"> 
<p><b><font color="#FF0000">Nombre:</font></b><br /> 
<label> 
<input name="nombre" type="text" id="nombre" size="18" /> 
</label> 
<br /> 
<b><font color="#FF0000">Pedido Musical:</font></b><br /> 
<input name="pedido" type="text" id="pedido" size="35" />
<br />
<b><font color="#FF0000">Saludos:</font></b><br /> 
<textarea name="saludos" id="saludos" rows="3" cols="29"></textarea> 
<br /> 
<label> 
<input type="submit" name="Submit" value="Enviar Pedido" /> 
</label> 
</p> 
</form> 

<noframes>
&nbsp; 
enviar.php

Código PHP:
<?php 

$mail
=aquituemail'; 


$nombre = $_POST['
nombre']; 
$pedido = $_POST['
pedido']; 
$saludos = $_POST['
saludos]; 

$thank="gracias.htm"

$message 
Nombre: "
.$nombre.
Pedido Musical: "
.$pedido.
Saludos: "
.$saludos.""

if (
mail($mail,"Pedido Musical",$message)) 
Header ("Location: $thank" ); 

?>
gracias.htm

Código PHP:
<html>

<
head>
<
script language="javascript">
 
window.onload = new Function(null)
</script>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Su pedido ha sido enviado...</title>
</head>

<body background="envio.jpg">

<noframes>