Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/05/2011, 05:13
Clemenzza
 
Fecha de Ingreso: mayo-2011
Mensajes: 10
Antigüedad: 13 años, 9 meses
Puntos: 1
Problema de novato PHP

Hola, necesito ayuda para unas practicas de trabajo en las que quedaría muy bien si consiguiera solucionar mi problema con la programación.
Estoy creando un formulario con Dreamweaver y tengo el problema de que será una página web para móviles mayoritariamente por lo que no me vale "malito" y el php no se si es posible hacerlo....este es mi código de la web:


<form id="contacto" name="contacto" method="post" action="enviar.php">

<label for="textfield2">
&nbsp;&nbsp;Nombre*</label>
<label for="textfield2">
<input name="Nombre" type="text" id="textfield2" size="15" />
&nbsp;&nbsp;Apellidos*
<input name="Apellidos" type="text" id="Apellidos" size="30" />
</label>
<label for="textfield3"> </label>
<p>
&nbsp;&nbsp;Tel&eacute;fono
<input name="Tel&eacute;fono" type="text" id="Tel&eacute;fono" size="30" />
<label for="Direcci&oacute;n2">&nbsp;&nbsp;Direcci&oacute ;n</label>
<input name="Direcci&oacute;n" type="text" id="Direcci&oacute;n" size="30" />
</p>
<p>
<label for="M&oacute;vil">&nbsp;&nbsp;M&oacute;vil</label>
<input name="M&oacute;vil" type="text" id="M&oacute;vil" maxlength="10" />
&nbsp;CP
<input name="CP" type="text" id="CP" size="10" maxlength="5" />
<label for="Ciudad">&nbsp;&nbsp;Ciudad</label>
<input type="text" name="Ciudad" id="Ciudad" />
</p>
&nbsp;&nbsp;Email*
<label for="Email"></label>
<input name="Email" type="text" id="Email" size="30" maxlength="30" />
<label for="Pa&iacute;s">&nbsp;&nbsp;Pa&iacute;s</label>
<input type="text" name="Pa&iacute;s" id="Pa&iacute;s" />
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;<input name="Enviar" type="submit" id="Enviar" value="Enviar" />
</p>
</form>

Al introducir en otro archivo php el código:


< ?php
$nombre = $_POST['Nombre'];
$mail = $_POST['Apellidos'];
ETC

$header = 'From: ' . $mail . " \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/plain";

$para = '[email protected]';


mail($para, $header);

echo 'Mensaje enviado, ¡Gracias!';

?>


En la Web definitiva, no ocurre nada, alguien me puede ayudar?? cual es mi fallo?tener en cuenta que es para móviles y no se q servidor se usa....sí, soy un poco torpe en este mundo....