Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/10/2012, 04:57
Avatar de 2_javi_2
2_javi_2
 
Fecha de Ingreso: septiembre-2012
Mensajes: 8
Antigüedad: 11 años, 8 meses
Puntos: 0
Problema con formulario html+php

Hola, antes de nada soy algo (bastante) novato en el mundo web. Tengo un problema con un formulario. Lo tengo subido al servidor y cuando acabas de rellenarlo y lo envías me aparece el siguiente error:

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."


El código HTML es el siguiente:

<form id="contacto" name="contacto" method="post" action="Prueba.php" onsubmit="return validaform(this);">
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>*Nombre:</td>
<td><label for="nombre"></label>
<input type="text" name="nombre" id="nombre" /></td>
<td>*Apellidos:</td>
<td><label for="apellidos"></label>
<input type="text" name="apellidos" id="apellidos" /></td>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td>*E-mail:</td>
<td><label for="email"></label>
<input type="text" name="email" id="email" /></td>
<td colspan="4">&nbsp;</td>
</tr>
<tr>
<td><p>Calle:</p></td>
<td><label for="calle"></label>
<input type="text" name="calle" id="calle" /></td>
<td>Numero;:</td>
<td><label for="numero"></label>
<input type="text" name="numero" id="numero" /></td>
<td>Codigo Postal:</td>
<td><label for="codigo postal"></label>
<input type="text" name="codigo postal" id="codigo postal" /></td>
</tr>
<tr>
<td>Poblacion:</td>
<td><label for="poblacion"></label>
<input type="text" name="poblacion" id="poblacion" /></td>
<td>*Provincia:</td>
<td><label for="provincia"></label>
<input type="text" name="provincia" id="provincia" /></td>
<td>*Pais:</td>
<td><label for="pais"></label>
<input type="text" name="pais" id="pais" /></td>
</tr>
<tr>
<td colspan="6">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><label for="button"></label>
<input type="submit" name="button" id="button" value="Enviar" /></td>
<td><label for="button2"></label>
<input type="reset" name="button2" id="button2" value="Limpiar" /></td>
<td colspan="3">&nbsp;</td>
</tr>
</table>
</form>

Y el del archivo PHP es este:

<?php
$nombre = $_POST['nombre'];<br />
$apellidos = $_POST['apellidos'];<br/>
$email = $_POST['email'];<br />
$calle = $_POST['calle'];<br/>
$numero = $_POST['numero'];<br/>
$codigo postal = $_POST['codigo postal'];<br/>
$poblacion = $_POST['poblacion'];<br/>
$provincia = $_POST['provincia'];<br/>
$pais = $_POST['pais'];<br/>
</p>
<p>$para = '[email protected]';<br />
$asunto = 'contacto';</p>
<p>mail($para, $asunto, $mensaje, "From: $remitente");</p>
<p>echo 'Mensaje enviado correctamente';<br />
?>

¿Donde esta el fallo? Seguro que es algo absurdo, pero no lo veo. Gracias.