Still does not work. Here is the entire files,
REGISTRATION.PHP contains
<?php
$fname = $POST['fname'];
$lname = $POST['lname'];
$subscriber_email = $POST['email'];
$idioma = $POST['idioma'];
$to = 'aguevara@cfl.rr.com';
$admin_name = "Angelo A. Guevara";
$admin_email = "aguevara@cfl.rr.com";
$cookie_life = time() +3600;
$username = $fname . " " . $lname;
setcookie('username', $username, $cookie_life); setcookie('angelo', "angelo", $cookie_life);
/////////////////////////////////////////////
// Send html autoresponder email or whatever
/////////////////////////////////////////////
if ($idioma == "spanish")
{
$subject = "Estimado $fname $lname, gracias por su subscription";
}
else
{
$subject = "Dear $fname $lname, thank you for subscribing";
}
if ($idioma == "spanish")
{
$message = "<html>
<head>
<title></title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
</head>
<body marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\">
<font style=\"font-family:tahoma, arial, verdana;font-size:10pt\">
Estimado $fname $lname,
<p>Usted se ha registrado en caripito.com, recibira nuestro resumen mensual todos los meses a su direccion de correo electronico.</p>
<p>Tenga buen dia,</p>Angelo A. Guevara<br>www.caripito.com
<p></p>
</font>
</body>
</html>
";
}
else
{
$message = "<html>
<head>
<title></title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
</head>
<body marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\">
<font style=\"font-family:tahoma, arial, verdana;font-size:10pt\">
Dear $fname $lname,
<p>We have received your registration request. We will send you our newsletter every month via email.</p>
<p>Have a great day,</p>Angelo A. Guevara<br>www.caripito.com
</font>
</body>
</html>
";
}
$headers = "MIME-Version: 1.0\r \n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r \n";
$headers .= "From:\"$admin_name\" <$admin_email>\r \n";
$headers .= "Reply-To: \"$admin_name\" <$admin_email>\r \n";
$headers .= "X-Priority: 3\r \n";
$headers .= "X-MSMail-Priority: High\r \n";
$headers .= "X-Mailer: Just My Server";
mail($subscriber_email, $subject, $message, $headers);
/////////////////////////////////////////////
// Notify the new submission to the administrator
/////////////////////////////////////////////
$date = date("F j, Y, g:i a" );
$to = "aguevara@cfl.rr.com";
$subject = "Another person subscribed";
$message = "
The following submission has been received.
Name: $fname $lname
Email: $subscriber_email
Form submitted on $date";
//$header = "From:Subscription <anye@caripito.com>";
mail($to, $subject, $message, $headers);
/////////////////////////////////////////////
// Echo a message to the screen letting the
// new subscriber know you have received the
// information
/////////////////////////////////////////////
echo "<html>";
echo "<head>
<title></title>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"> </head> <body marginwidth=\"0\" marginheight=\"0\" topmargin=\"0\" leftmargin=\"0\"> <font style=\"font-family:tahoma, arial, verdana;font-size:10pt\">";
if ($idioma == "spanish")
{
echo "<font color=\"3333ff\" style=\"font-family:tahoma, arial, verdana;font-size:10pt\">
<p>Estimado o Estimada $fname $lname,</p>
<p>Usted se ha registrado en caripito.com, recibira nuestro resumen mensual todos los meses a su direccion de correo electronico.</p>
<p>De acuerdo a nuestros records su email es $subscriber_email</p>
<p>Tenga buen dia,</p>Angelo A. Guevara<br>www.caripito.com
</font>";
}
else
{
echo "<font color=\"3333ff\" style=\"font-family:tahoma, arial, verdana;font-size:10pt\">
<p>Dear $fname $lname,</p>
<p>We have received your registration request. We will send you our newsletter every month via email.</p>
<p>According to our records your email is $subscriber_email</p>
<p>Have a great day,</p>Angelo A. Guevara<br>www.caripito.com
</font>";
}
echo "<a href=\"index.php\">Home</a>";
echo "</body></html>";
?>
INDEX.PHP contains,
<html>
<head>
<title>Welcome to Caripito.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META HTTP-EQUIV="Page-Enter" CONTENT="BlendTrans(Duration=3.0)">
<?php
include 'js.php';
?>
<link href="Assets/master.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/btnCustomerService_on.jpg','images/btnLocations_on.jpg')">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<?php
include 'header.php';
?>
</tr>
<tr>
<td>
<?php
include 'menubar.php';
?>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="4" cellpadding="4" align="center">
<tr>
<td width="523" valign="top"> <img src="images/caripito.jpg" width="523" height="220" alt="caripito Art" border="0">
<p align="center"><b>Vista desde Caripito Arriba</b></p>
<hr> <p>Tienes alguna información de Caripito, enviamela <a href="mailto:webmaster@caripito.com">webmaster@caripito.com</a></p>
<p> </p></td>
<td width="100%" align="right" valign="top"> <table width="100%" border="0" cellspacing="2" cellpadding="4">
<tr bgcolor="#333366">
<td width="100%" bgcolor="#333366"> <B><font color="White"> Planes para
Navidad !</font></B></td>
</tr>
<tr bgcolor="#DCDCDC">
<td valign="top"> <p>Este site es nuestro aporte, nuestro granito de
arena para resaltar las virtudes de un pueblo en el Nor-Este Venezolano
cuyo nombre es Caripito. </p>
<p>Con esto en mente nos trazamos la meta no solo de representar simbólicamente
a Caripito sino ayudar en su crecimiento, bienestar en lo que nos
sea posible.</p>
<p>Muchos de ustedes han contribuido; pero se necesita mucho, mucho
más. Nuestro pueblo sufre hoy en día las mismas deficiencias
de cualquier pueblo en LatinoAmerica, principalmente en las areas
de trabajo, educación y social (delincuencia) las cuales
como todos sabemos estan "inter-relacionadas". <a href="navidad.php">(Ver
Detalles...)</a> </p>
<hr SIZE="3"> <a href="david.php">Quieres ver las Obras de David Martinez,
pulsa aqui </a><br> </td>
</tr>
<tr bgcolor="#DCDCDC">
<td valign="top"><a href="login.php">Registrate / Register</a></td>
</tr>
<tr bgcolor="#DCDCDC">
<td valign="top"><a href="index_en.php"><strong><font size="+1">ENGLISH</font></strong></a></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top">
<?php
include('counter.php');
?>
</td>
</tr>
</table>
Username
<?php
$username;
?>
Angelo
<?php
$angelo;
?>
</body>
</html>