Miren el script:
Cita:
<body>
<p>
<?
if (!$HTTP_POST_VARS){
?>
</p>
<blockquote>
<form action="contact.php" method=post onSubmit="return form_Validator(this)">
<table width="584" height="233" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="86" class="style15"><span class="style15">Nombre:</span></td>
<td width="498"><input
name=nombre class=imputbox id=usuario
style="WIDTH: 300px; HEIGHT: 20px" size=49></td>
</tr>
<tr>
<td class="style15"><span class="style15">Mail:</span></td>
<td><input
name=email class=imputbox id=usuario5
style="WIDTH: 300px; HEIGHT: 20px" size=33></td>
</tr>
<tr>
<td><span class="style15">Mensaje:</span></td>
<td><textarea name="coment" cols="33" class="imputbox" id="usuario8" style="WIDTH: 300px; HEIGHT: 100px"></textarea></td>
</tr>
<tr>
<td><span class="style16"></span></td>
<td><input name="Submit" type="submit" class="botones " value="Enviar">
<input name="reset" type="reset" id="reset" value="Borrar"></td>
</tr>
</table>
<?
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviado desde la pagina web www.rojayblanca.com.ar";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["email"] . "\n";
$cuerpo .= "Mensaje: " . $HTTP_POST_VARS["coment"] . "\n";
//mando el correo...
mail("[email protected]","Formulario recibido",$cuerpo);
//doy las gracias por el envío
echo "Gracias por rellenar el formulario. Se ha enviado correctamente.";
}
?>
<!-- Fin del formulario de la página WWW.TRETZHACK.TK -->
</form>
</blockquote>
</body>
<p>
<?
if (!$HTTP_POST_VARS){
?>
</p>
<blockquote>
<form action="contact.php" method=post onSubmit="return form_Validator(this)">
<table width="584" height="233" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="86" class="style15"><span class="style15">Nombre:</span></td>
<td width="498"><input
name=nombre class=imputbox id=usuario
style="WIDTH: 300px; HEIGHT: 20px" size=49></td>
</tr>
<tr>
<td class="style15"><span class="style15">Mail:</span></td>
<td><input
name=email class=imputbox id=usuario5
style="WIDTH: 300px; HEIGHT: 20px" size=33></td>
</tr>
<tr>
<td><span class="style15">Mensaje:</span></td>
<td><textarea name="coment" cols="33" class="imputbox" id="usuario8" style="WIDTH: 300px; HEIGHT: 100px"></textarea></td>
</tr>
<tr>
<td><span class="style16"></span></td>
<td><input name="Submit" type="submit" class="botones " value="Enviar">
<input name="reset" type="reset" id="reset" value="Borrar"></td>
</tr>
</table>
<?
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviado desde la pagina web www.rojayblanca.com.ar";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["email"] . "\n";
$cuerpo .= "Mensaje: " . $HTTP_POST_VARS["coment"] . "\n";
//mando el correo...
mail("[email protected]","Formulario recibido",$cuerpo);
//doy las gracias por el envío
echo "Gracias por rellenar el formulario. Se ha enviado correctamente.";
}
?>
<!-- Fin del formulario de la página WWW.TRETZHACK.TK -->
</form>
</blockquote>
</body>