Code: Select all
<?php
if($_SESSION['verified']!="yes")
{
if(isset($_POST['email']) && !empty($_POST['email']) && $_POST['tos']=="yes")
{
$email=$_POST['email'];
// You can edit parts in quotes
$sub="Thank you for checking out the site";
$pass="318DPL";
$message="You can view the password protect parts with this password: $pass
http://".htmlentities($_SERVER['HTTP_HOST'])."/agreement.php\"";
$succ="<tr><td class=\"green\" colspan=\"2\">Email sent. You may need to check your Spam/ Junk Email folder</td></tr>";
$url="yoururl";
// Stop do not edit
mail( "$email", "$sub",
$message, "From:info@318desprairies.com");
echo"
<a name=\"pass\">
<table id=\"form\">
<form action=\"agreement.php#pass\" method=\"post\" />
$succ
<td>
<input type=\"password\" name=\"pass\" value=\"Password\"/>
</td>
<td>
<input type=\"submit\" value=\"Submit Password\" />
</td></tr>
</table>
</form>";
}
else
{
if(isset($_POST['email']) and empty($_POST['email']))
{
$err="<tr><td id=\"error\" colspan=\"2\">You did not give a valid email </td></tr>";
}
if(isset($_POST['ch']) and $_POST['tos']!="yes")
{
$errr="<tr><td id=\"error\" colspan=\"2\">You did not agree to the Confidentiality Agreement</td></tr>";
}
echo"
<table id=\"form\">
$passerr
$err
$errr
<form action=\"agreement.php#pass\" method=\"post\" />
<tr><td class=\"redbold\" colspan=\"2\">
<center><input type=\"radio\" name=\"tos\" value=\"yes\" /> Agree to the Confidentiality Agreement</center>
</tr></td>
<tr>
<td>
<input type=\"text\" name=\"email\" value=\"Email\"/>
</td>
<td>
<input type=\"submit\" value=\"Request Password\" name=\"ch\" />
</td>
<td></tr>
</form>
<a name=\"pass\">
<form action=\"agreement.php#pass\" method=\"post\" />
</td>
<td>
<input type=\"password\" name=\"pass\" value=\"Password\"/>
</td>
<td>
<input type=\"submit\" value=\"Submit Password\" />
</td></tr>
</table>
</form>";
}
}
?>Code: Select all
<link href="../styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.centerdiv {
width:900px;
max-width: 900px;
}
.redbold {
font-weight: bold;
color: #C33;
text-align: center;
}
.centeragreement {
text-align: center;
border-top-color: #F00;
border-top-style: dotted;
border-top-width: 2px;
border-bottom-color: #F00;
border-bottom-style: dotted;
border-bottom-width: 2px;
margin-top: 0px;
margin-bottom: 0px;
padding: 15px;
}
.centered {
text-align: center;
}
.footer {
height:262px;
float:left;
width:900;
}
table#form
{
text-align:center;
margin:auto;
}
td
{
padding:10px;
}
.green
{
color:green;
margin:auto;
text-align:center;
}
</style>Also, On this same page... it's at http://www.318desprairies.com then click English
Can someone PLEASE tell me why my footer text is gone??????
It shows up in IE6 in every other page but this one.. Is there a rule I have on it by accident? or a conflict??
I've been trying this for 6 hours last night and now this morning, I am stumped and I dont want to over edit and mess this page up
Please and thanks