Hi everyone, Im a php newbie jejeej .
Im getting the following error undefined variable at line 19 , I verified the php.ini and I dont know what else I can do. Im working on IIS with windows xp/2000.
If someone can help , please!!
HTML
<body bgcolor="#000066">
<form action="mail.php" method="post">
<table width="740" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="740" height="330" background="contactenos.jpg"><div align="right">Nombre:
<input type="text" name="name" >
<br/>
Email:
<input type="text" name="email">
<br/>
Comentarios : <br/>
<textarea name="message" cols="40" rows="5" ></textarea>
<br/>
<input name="submit" type="submit" value="Enviar">
</div></td>
<td> </td>
</tr>
</table>
<br/>
</form>
mail.php
<?php
//variables (change these)
$youremail = "nante1181@hotmail.com";
// your email address
$subject = "test form";
// the subject of the email
$thankyou = "thankyou.php";
// thank you page
// don't change anything else
if($email == ""){
?>
<body bgcolor="#000066" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif">No introdujo
Email. Por favor vuelva a atras.<br/>
<?php
}elseif($name == ""){
?>
No Introdujo un nombre. Por favor vuelva a atras.<br/>
<?php
}elseif($message == ""){
?>
No Introdujo un mensaje. Por favor vuelva a atras.<br/>
<?php
}else{
$msg = ereg_replace("\\\'", "'", $message);
$msg = ereg_replace('\\\"', "\"", $msg);
$message1 = "from: $name\nemail: $email\nmessage:\n$msg1";
mail($youremail, $subject, $msg, "From: $email\r\nReply-to: $email\r\n");
?>
</font></div>
<meta http-equiv="refresh" content="0; url=<?echo $thankyou;?>"">
<?php
}
?>
thanks for your help