Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
The following form code is actually working but it give an error:Code: Select all
<?php
if(isset($nombre)) {
$mensaje=":: Mensaje desde Web H.Ecuestre.cl :: " . chr(13). chr(10);
$mensaje=$mensaje . "nombre : " . $nombre . chr(13). chr(10);
$mensaje=$mensaje . "email : " . $email . chr(13). chr(10);
$mensaje=$mensaje . "consulta : " . $consulta . chr(13). chr(10);
$resultado = mail ("xxxxxxx@xxxxxxxxx.cl", "Contactado por: " . $nombre, $mensaje, $nombre);
if ($resultado) {
include('http://www.xxxxxxxx.cl/gracias.htm'); }
else {
include('http://www.xxxxxxxxx.cl/campovacio.htm'); }
}
?>The error it gives is:
Code: Select all
Notice: Undefined variable: consulta in D:\Dominios\resadmin\haciendaecuestre\haciendaecuestre.cl\www\enviar.php on line 6Please help.
feyd | Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]