Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/03/2014, 04:18
Syst
 
Fecha de Ingreso: marzo-2014
Mensajes: 11
Antigüedad: 10 años, 1 mes
Puntos: 0
Pregunta No me llegan todos los datos de mi formulario php

Yo también tengo un problema con mi formulario php. Después de dejarme la piel para poder conseguir un formulario SUPER SENCILLO, recibo todo excepto edad y población. Por otra parte también me sale un $ en el asunto, debo haber tocado algo que no debía. Lo dejo aquí a ver si alguien ve los posibles errores:

mail("$email", "$prefijo $", "$contenido", "From: $f_name <$f_mail>");
echo "<em>Tu mensaje ha sido enviado. En breve nos pondremos en contacto contigo, gracias.</em>";
}
else {
if ($op<>"") { echo "<em>¡Ups! Es necesario rellenar correctamente todos los campos, gracias.</em>"; }

?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<div align="center">
<table>
<tr>
<td width="19" height="43" align="right" bgcolor="#999999">&nbsp;</td>
<td width="745" align="left" bgcolor="#999999"><strong>Nombre y Apellidos</strong>
<input name="f_name" type="text" value="<?php echo $f_name; ?>" size="60" /></td>
</tr>
<tr>
<td height="38" align="right" bgcolor="#999999">&nbsp;</td>
<td align="left" bgcolor="#999999"><strong>E-mail</strong>
<input name="f_mail" type="text" value="<?php echo $f_mail; ?>" size="30" />
<strong> Edad </strong> <input name="f_Edad" type="text" value="<?php echo $f_Edad; ?>" size="10" /></td>
</tr>
<tr>
<td height="37" align="right" bgcolor="#999999">&nbsp;</td>
<td align="left" bgcolor="#999999"><strong>Población</strong> <input name="poblacion" type="text" value="<?php echo $poblacion; ?>" size="30" /></td>
</tr>
<tr>
<td height="243" align="right" bgcolor="#999999">&nbsp;</td>
<td align="left" bgcolor="#999999"><strong>Consulta</strong>
<p>
<textarea cols="80" rows="10" name="f_message"><?php echo $f_message; ?></textarea>
</p></td>
</tr>
<?php if ($pregunta) { ?>
<tr>
<td colspan="2" align="left" bgcolor="#999999"><?php echo $pregunta; ?> <input name="rs" type="text" value="" size="10" maxlength="10" /></td>
</tr>
<?php } else {echo "<input type='hidden' name='rs' value='rs' />";} ?>
</table>
<input type="hidden" name="op" value="ds" />
<input type="submit" value="Enviar consulta" />
</div>
</form>
<?php
}
?>


Esto es lo que tengo en form.php.