My contacts page: [URL=http://www.oshawapss.ca/contact.php]http://www.oshawapss.ca/contact.php
As you might have noticed, here’s the differences I’ve come up with:
1) The footer is not pushed to the left, instead of lining up with the other blocks.
2) “?action=send” name=”queries”> ” appears above the contact form.
3) The outlines of the form boxes are thicker in IE
4) Nothing in the main block is centered
Thats what I’ve come up with.
Thanks for your help.
code:
[code=php]<html>
<head>
<title>.:Oshawa Power and Sail Squadron:.</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<link rel=”stylesheet” type=”text/css” href=”opss-css.css”>
</head>
<body id=”body”>
<map name=”CPSMAP”>
<area shape=”rect” coords=”220,15,317,94″ href=”http://www.cps-ecp.ca/index.html” target=”_blank”>
</map>
<center>
<div id=”banner”><img src=”images/banner.gif” alt=”Oshawa Power and Sail Squadron :: OPSS is a Unit of the Canadian power and Sail Squadrons” width=”700″ height=”113″ border=”0″ usemap=”#CPSMAP”></div>
<!– NAVIGATION START –>
<div id=”nav”>
<a href=”home.htm”>Home</a>
<a href=”events.htm”>Events & Course Dates</a>
<a href=”newsletter.htm”>Newsletters</a>
<a href=”history.htm”>History</a>
<a href=”officers.htm”>Officers</a>
<a href=”members.htm”>Members</a>
<a href=”benefits.htm”>Benefits</a>
<a href=”classifieds.htm”>Classifieds</a>
<a href=”links.htm”>Links</a>
<a href=”contact.php”><strong>Contacts</strong></a>
</div>
<!– NAVIGATION END –>
<!– MAIN CONTENT START –>
<div id=”main”>
<?php
if(isset($_GET[‘action’]) && ($_GET[‘action’] == “send”))
{
/* advisory messages */
$success_msg = ‘Your Message Has Been Delivered’;
$failure_msg = ‘Please try again, there seems to be an error.’;
/* all you have to set are the email addresses */
$commander = “[email protected]”;
$email1 =”[email protected]”;
$email2 =”[email protected]”;
$email3 =”[email protected]”;
$email4 =”[email protected]”;
$email5 =”[email protected]”;
$email6 =”[email protected]”;
$email7 =”[email protected]”;
$email8 =”[email protected]”;
$email9 =”[email protected]”;
$email10 =”[email protected]”;
$email11 =”[email protected]”;
$email12 =”[email protected]”;
$email13 =”[email protected]”;
$email14 =”[email protected]”;
$email15 =”[email protected]”;
/* end your editing */
$name = $_POST[‘realname’];
$email = preg_replace(‘/([r]?[n])+/’, ”, $_POST[’email’]);
$comments = $_POST[‘textarea’];
$recipient = $_POST[‘recipient’];
switch($recipient)
{
case “1”:
$recipient = $email1;
break;
case “2”:
$recipient = $email2;
break;
case “3”:
$recipient = $email3;
break;
case “4”:
$recipient = $email4;
break;
case “5”:
$recipient = $email5;
break;
case “6”:
$recipient = $email6;
break;
case “7”:
$recipient = $email7;
break;
case “8”:
$recipient = $email8;
break;
case “9”:
$recipient = $email9;
break;
case “10”:
$recipient = $email10;
break;
case “11”:
$recipient = $email11;
break;
case “12”:
$recipient = $email12;
break;
case “13”:
$recipient = $email13;
break;
case “14”:
$recipient = $email14;
break;
case “15”:
$recipient = $email15;
break;
}
$message =” Name: “.$name. “nn Email: “.$email. “nn Comments: “.$comments;
$headers = ($recipient != $commander)?’From: ‘.$email.”n”.’Bcc: ‘.$commander:’From: ‘.$email;
if(@mail($recipient, “Message From the OPSS Website – From: “.$name, $message, $headers))
{
echo($success_msg);
}
else
{
echo($failure_msg);
}
}
else
{
// print form
?>
<center>
<form method=”post” action=”<?php echo($SERVER[‘php_self’]); ?>?action=send” name=”queries”>
<p>Name</p> <input name=”realname” type=”text” value=”name” size=”20″ maxlength=”40″ class=”entire-form” />
<p>Email</p> <input name=”email” type=”text” value=”email” size=”20″ maxlength=”40″ class=”entire-form” />
<p>Comments</p> <textarea name=”textarea” class=”entire-form”>Comments</textarea><BR><BR>
<select name=”recipient” size=”1″ class=”entire-form”>
<option>Please Select Recipient</option>
<option> </option>
<option value=”1″>Richard Widish :: Commander/Newsletter</option>
<option> </option>
<option value=”2″>Graeme Williamson :: Executive Officer</option>
<option> </option>
<option value=”3″>Greg Bergeron :: Training Officer</option>
<option> </option>
<option value=”4″>Paula Brown :: Admin Officer</option>
<option> </option>
<option value=”5″>John Rycroft :: Secretary</option>
<option> </option>
<option value=”6″>Bruce Madgett :: Treasurer</option>
<option> </option>
<option value=”7″>Suzanne Askin :: Membership/Boating Chair</option>
<option> </option>
<option value=”8″>Ron King :: Past Commander/Boat Pro Chair</option>
<option> </option>
<option value=”9″>Brian Senchak :: Communications/Web Site</option>
<option> </option>
<option value=”10″>Doug Alexander :: Piloting Chair</option>
<option> </option>
<option value=”11″>Paul DeBruyn :: Celestial Navigation Chair</option>
<option> </option>
<option value=”12″>Don LePage :: MAREP/Port Captain – Port Whitby Marina</option>
<option> </option>
<option value=”13″>John Van Manen :: Quartermaster</option>
<option> </option>
<option value=”14″>Ken Collis :: Port Captain – Whibty Yacht Club</option>
<option> </option>
<option value=”15″>OPSS Email :: Comments/Questions</option>
</select>
<p><input type=”submit” value=”send” class=”formBG” /></p>
</form>
</center>
<?php
}
?>
</div>
<!– MAIN CONTENT END –>
<!– FOOTER START –>
<div id=”footer” class=”h1FOOTER”>
Created and Managed by Brian Senchak © Oshawa Power and Sail Squadron
</div>
<!– FOOTER END –>
</center>
</body>
</html>