/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Contact Page works in FF, bot not IE

My contacts page: [URL=http://www.oshawapss.ca/contact.php]http://www.oshawapss.ca/contact.php[/URL] isn’t working proporly in IE, but int FF, it’s just is done perfectly.

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>&nbsp;</option>
<option value=”1″>Richard Widish :: Commander/Newsletter</option>
<option>&nbsp;</option>
<option value=”2″>Graeme Williamson :: Executive Officer</option>
<option>&nbsp;</option>
<option value=”3″>Greg Bergeron :: Training Officer</option>
<option>&nbsp;</option>
<option value=”4″>Paula Brown :: Admin Officer</option>
<option>&nbsp;</option>
<option value=”5″>John Rycroft :: Secretary</option>
<option>&nbsp;</option>
<option value=”6″>Bruce Madgett :: Treasurer</option>
<option>&nbsp;</option>
<option value=”7″>Suzanne Askin :: Membership/Boating Chair</option>
<option>&nbsp;</option>
<option value=”8″>Ron King :: Past Commander/Boat Pro Chair</option>
<option>&nbsp;</option>
<option value=”9″>Brian Senchak :: Communications/Web Site</option>
<option>&nbsp;</option>
<option value=”10″>Doug Alexander :: Piloting Chair</option>
<option>&nbsp;</option>
<option value=”11″>Paul DeBruyn :: Celestial Navigation Chair</option>
<option>&nbsp;</option>
<option value=”12″>Don LePage :: MAREP/Port Captain – Port Whitby Marina</option>
<option>&nbsp;</option>
<option value=”13″>John Van Manen :: Quartermaster</option>
<option>&nbsp;</option>
<option value=”14″>Ken Collis :: Port Captain – Whibty Yacht Club</option>
<option>&nbsp;</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 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; Oshawa Power and Sail Squadron
</div>
<!– FOOTER END –>
</center>
</body>
</html>[/code]

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@chazzyMar 12.2006 — I really don't see it.

It doesn't look exactly the same, but it looks like it should work. Don't forget, PHP is server side, it has nothing to do with how the browser renders it, or is not selective based on any of that.

Also, it's sending off false reports in both browsers.
Copy linkTweet thisAlerts:
@bokehMar 13.2006 — A couple of things to start with: All html documents should start with a DOCTYPE, if they don't how will the browser know which version of HTML the document is based on? The textarea needs row and column attridutes. The style sheet, on line 92, contains a non-existant attrribute [I]weight[/I]. Once you have sorted out those things [URL=http://validator.w3.org/]validate the document and stylesheet[/URL].

Also remember that if you don't specify precisely how to display an element the browser will revert to its default behaviour which is different from browser to browser.
Copy linkTweet thisAlerts:
@sheepo-designsauthorMar 13.2006 — wow. Stupid me.

I didn't realize that I was accessiongthe contact age from the FTP I'm using. It must have looked at it differentlly than a regular IE window would. Sorry guys. But I did use the DOC type and took out the bolding. Thanks for that.
×

Success!

Help @sheepo-designs spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...