HI,
It gives me errors. This is the beginning of my page:
<?
header("Cache-Control:no-cache,must-revalidate");
if($admin!="S"){print("<script language='JavaScript'>location.href='../index.php';</script>");}
?>
<? php
if(isset($_GET['send'])){
$mailTo ="x@x.org";
$mailFrom ="y@y.org";
$mailSubject="hi from me";
$mailBody ="This is a notification";
$headers = "Content-Type: text/plain\r\n";
$headers .= "From: $mailFrom\r\nReply-to: $mailFrom\r\nReturn-path: $mailFrom\r\n";
if(mail($mailTo, $mailSubject, $mailBody, "Content-Type:text/plain\nFrom: $mailFrom")){
header('Location: menuwebmaster.php');
}else{
echo 'Error in sending mail.'; [COLOR="Red"][B]THIS LINE GIVES AN ERROR[/B][/COLOR]
}
}
?>
<html>
<head>
<title>Área privada</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../estilos/h2.css">
<script language='JavaScript'> IF I DELETE THE ELSE (previous error), THEN THIS LINE GIVES AN ERROR
<!--
var caracteristicas='channelmode=0,dependent=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,screenX=0,screenY=0,width=800,height=450';
//-->
</script>
</head>
Any clue what is going on?
Thanks again!