www.webdeveloper.com
Results 1 to 4 of 4

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

  1. #1
    Join Date
    Mar 2005
    Location
    Canada (eh)
    Posts
    288

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

    My contacts page: http://www.oshawapss.ca/contact.php 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:

    PHP Code:
    <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 "1@1.com";
        
    $email1 ="1@1.com";
        
    $email2 ="2@2.com";
        
    $email3 ="3@3.com";
        
    $email4 ="4@4.com";
        
    $email5 ="5@5.com";
        
    $email6 ="6@6.com";
        
    $email7 ="7@7.com";
        
    $email8 ="8@8.com";
        
    $email9 ="9@9.com";
        
    $email10 ="10@10.com";
        
    $email11 ="11@11.com";
        
    $email12 ="12@12.com";
        
    $email13 ="13@13.com";
        
    $email14 ="14@14.com";
        
    $email15 ="15@15.com";
        
    /* 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"\n\n Email: ".$email"\n\n 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>
    Last edited by sheepo-designs; 03-20-2006 at 01:23 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    The Garden State
    Posts
    5,634
    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.

  3. #3
    Join Date
    Jan 2005
    Location
    Alicante (Spain)
    Posts
    7,742
    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 weight. Once you have sorted out those things validate the document and stylesheet.

    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.

  4. #4
    Join Date
    Mar 2005
    Location
    Canada (eh)
    Posts
    288
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles