Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Submit button not working in IE

    Hi All,

    I have a feedback form which is not working!!

    It works fine in Firefox but as soon as I press the Submit button in IE it just doesn't want to work. Please help!

    www.dyasonprint.co.za/survey/survey.html

    HTML CODE

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html>
       <head>
          <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
          <title>
             customer satisfaction survey
          </title>
          <link type="text/css" href="default.css">
          <link href="default.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="util-functions.js">
    </script>
    <script type="text/javascript" src="clear-default-text.js">
    </script>
        
       </head>
       <body>
          <a name="top"></a> 
          <div id="container">
             <div id="rightside">
                <div id="title">
                   <p>
                      how are we doing?
                   </p>
                </div>
                <div id="sidebar">
                   <img src="img/star2.jpg" alt="star" style="display:none"> 
                   <h1>
                      our values
                   </h1>
                   <h3>
                      what we're made of
                   </h3>
                   <p>
                      Our values are what we live and breathe by at Dyason and they
                      allow us to successfully forge seamless and meaningful
                      working relationships with our clients. Every employee holds
                      these core values true to their own hearts and this is
                      reflected on every sheet of paper we print.<br>
                   </p>
                   <h3>
                      Integrity - Doing the right thing
                   </h3>
                   <p>
                      We hold integrity as our paramount value. Our ethical
                      conduct, employment equity policies and social
                      responsibilities exemplify our way of doing business.
                      We're honest, trustworthy and always deliver on our
                      promises.
                   </p>
                   <h3>
                      Championing the customer and fighting for what they want
                   </h3>
                   <p>
                      The needs of our customers lay the foundation for everything
                      we do. We endeavour to offer real value for money and will go
                      to the ends of the earth to deliver exactly what they need.
                   </p>
                   <h3>
                      Service Excellence - Being different by being better
                   </h3>
                   <p>
                      In everything we do we strive to do the absolute best that we
                      can to provide the highest quality product possible. Our
                      employees are performance driven and there is accuracy and
                      extreme attention to detail on every project.
                   </p>
                   <h3>
                      Ownership - With pride and passion
                   </h3>
                   <p>
                      Ownership matters. Why? Because owners think long-term and
                      work with an immeasurable passion. All employees at Dyason
                      are beneficiaries of a trust owning a large share of the
                      company. Reaping the rewards of their efforts empowers each
                      individual with a sense of pride, and a passion to really
                      make a difference in every project we undertake.
                   </p>
                   <h3>
                      Innovation - Evolving as we grow
                   </h3>
                   <p>
                      We look for opportunities where we can offer something better
                      and more valuable, and we seize them. Embracing challenges
                      allows us to grow and ultimately achieve the mission and
                      vision by which we're driven.
                   </p>
                   <h1>
                      our promise
                   </h1>
                   <h3>
                      excellence in service and quality
                   </h3>
                   <p>
                      We are committed to achieving excellence in service and
                      quality. Please take the time to view our website at
                      www.dyasonprint.co.za by clicking <a href=
                      "http://www.dyasonprint.co.za" target="_blank">here</a>.
                   </p>
                </div>
             </div>
             <div id="content">
                <h1 class="cyan">
                   how are we doing??
                </h1>
                <h3>
                   have your say
                </h3>
                <p>
                   Thanks for taking the time out of your hectic schedule to give
                   us your opinion.
                </p>
                <p>
                   By completing this customer satisfaction survey, you are helping
                   us make our service better - for you.
                </p>
                <p>
                   There is a total of 6 questions. You have two options to choose
                   from <em>(9/10 or 10/10)</em>. We believe that there is no
                   middle ground as far as service is concerned. It is either a
                   <em>10/10</em> or it is <em>unacceptable</em> and something
                   needs to happen to make it a 10!
                </p>
                <a name="over"></a>
                <h1 class="magenta">
                   your details
                </h1>
                <h3>
                   who's praising and who's *****ing!
                </h3>
                <form method="post" action="send_mail.php">
                   <table style="margin-left: 30px; ">
                      <tr>
                         <td>
                            <strong>Name:</strong>
                         </td>
                         <td>
                            <input name="Name" size="40">
                         </td>
                      </tr>
                      <tr>
                         <td>
                            <strong>Company:</strong>
                         </td>
                         <td>
                            <input name="Company" size="40">
                         </td>
                      </tr>
                      <tr>
                         <td>
                            <strong>Tel No:</strong>
                         </td>
                         <td>
                            <input name="Telephone" size="40">
                         </td>
                      </tr>
                      <tr>
                         <td>
                            <strong>Cell No:</strong>
                         </td>
                         <td>
                            <input name="Cell" size="40">
                         </td>
                      </tr>
                      <tr>
                         <td>
                            <strong>Email:</strong>
                         </td>
                         <td>
                            <input name="Email" size="40">
                         </td>
                      </tr>
                      <tr>
                         <td>
                            <strong>Reference No:</strong>
                         </td>
                         <td>
                            <input type="text" name="Ref" value="Task No, Invoice No, Order No etc." size="40" class=
                            "cleardefault">
                         </td>
                      </tr>
                   </table>
                   <h1 class="cyan">
                      the questions
                   </h1>
                   <h3>
                      pick your option by using the checkbox
                   </h3>
                   <h2>
                      1. How were you treated by our staff?
                   </h2>
                   <table style="margin-left: 30px; ">
                      <tr>
                         <td align="center">
                            <img alt="" src="img/angry-woman-753939.jpg" width="150" height="150">
                         </td>
                         <td align="center">
                            <img alt="" src="img/woman-laughing.jpg" width="150" height="150">
                         </td>
                      </tr>
                      <tr>
                         <td align="center">
                            <input type="radio" name="Treatment" value="0/10">
                            <em>9/10</em>
                         </td>
                         <td align="center">
                            <input type="radio" name="Treatment" value="10/10">
                            <em>10/10</em>
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            Comment below if necessary
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            <textarea cols="50" rows="3" name="Treatment_Comments">
                            </textarea>
                         </td>
                      </tr>
                   </table>
                   <h2>
                      2. Was your task completed on time?
                   </h2>
                   <table style="margin-left: 30px; ">
                      <tr>
                         <td align="center">
                            <img src="img/clock2.jpg" width="150" height="150" alt="">
                         </td>
                         <td align="center">
                            <img src="img/p84_on_time.jpg" width="150" height="150" alt="">
                         </td>
                      </tr>
                      <tr>
                         <td align="center">
                            <input type="radio" name="ontime" value="0/10">
                            <em>9/10</em>
                         </td>
                         <td align="center">
                            <input type="radio" name="ontime" value="10/10">
                            <em>10/10</em>
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            Comment below if necessary
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            <textarea cols="50" rows="3" name="ontime_Comments">
                            </textarea>
                         </td>
                      </tr>
                   </table>
                   <h2>
                      3. How was the quality of the product?
                   </h2>
                   <table style="margin-left: 30px; ">
                      <tr>
                         <td align="center">
                            <img src="img/dirty toilet2.jpg" width="150" height="150" alt="">
                         </td>
                         <td align="center">
                            <img src="img/toilet-design-ideas2.jpg" width="150" height="150" alt="">
                         </td>
                      </tr>
                      <tr>
                         <td align="center">
                            <input type="radio" name="Quality" value="0/10">
                            <em>9/10</em>
                         </td>
                         <td align="center">
                            <input type="radio" name="Quality" value="10/10">
                            <em>10/10</em>
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            Comment below if necessary
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            <textarea cols="50" rows="3" name="Quality_Comments">
                            </textarea>
                         </td>
                      </tr>
                   </table>
                   <h2>
                      4. Were you kept informed?
                   </h2>
                   <table style="margin-left: 30px; ">
                      <tr>
                         <td align="center">
                            <img src="img/Confused-man.jpg" width="150" height="150" alt="">
                         </td>
                         <td align="center">
                            <img src="img/einstein2.jpg" width="150" height="150" alt="">
                         </td>
                      </tr>
                      <tr>
                         <td align="center">
                            <input type="radio" name="Informed" value="0/10">
                            <em>9/10</em>
                         </td>
                         <td align="center">
                            <input type="radio" name="Informed" value="10/10">
                            <em>10/10</em>
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            Comment below if necessary
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            <textarea cols="50" rows="3" name="Informed_Comments">
                            </textarea>
                         </td>
                      </tr>
                   </table>
                   <h2>
                      5. Do you think you got value for your money?
                   </h2>
                   <table style="margin-left: 30px; ">
                      <tr>
                         <td align="center">
                            <img src="img/VW-BeetleRed19__Harding.jpg" width="150" height="150" alt="">
                         </td>
                         <td align="center">
                            <img src="img/ferrari_288_gto.jpg" width="150" height="150" alt="">
                         </td>
                      </tr>
                      <tr>
                         <td align="center">
                            <input type="radio" name="Value" value="0/10">
                            <em>9/10</em>
                         </td>
                         <td align="center">
                            <input type="radio" name="Value" value="10/10">
                            <em>10/10</em>
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            Comment below if necessary
                         </td>
                      </tr>
                      <tr>
                         <td align="center" colspan="2">
                            <textarea cols="50" rows="3" name="Value_Comments">
                            </textarea>
                         </td>
                      </tr>
                   </table>
                   <h2>
                      And Finally!<br>
                      Do you have any suggestions on how we can improve?
                   </h2>
                   <table style="margin-left: 30px; ">
                      <tr>
                         <td align="center" colspan="2">
                            <textarea cols="50" rows="5" name="Suggestions">
                            </textarea>
                         </td>
                      </tr>
                   </table>
                   <h2>
                      Thanks for your time! Click the button below to Submit<br>
                       your comments to us.
                   </h2>
                   <table style="margin-left: 30px;	">
                      <tr>
                         <td align="center" colspan="2">
                            <input type="submit" value="Submit" name="submit" />
    		             </td>
                      </tr>
                   </table>
                </form>
             </div>
             <div id="footer">
             </div>
          </div>
       </body>
    </html>

    PHP CODE

    PHP Code:
    <?php
    // This function checks for email injection. Specifically, it checks for carriage returns - typically used by spammers to inject a CC list.
    function isInjected($str) {
        
    $injections = array('(\n+)',
        
    '(\r+)',
        
    '(\t+)',
        
    '(%0A+)',
        
    '(%0D+)',
        
    '(%08+)',
        
    '(%09+)'
        
    );
        
    $inject join('|'$injections);
        
    $inject "/$inject/i";
        if(
    preg_match($inject,$str)) {
            return 
    true;
        }
        else {
            return 
    false;
        }
    }

    // Load form field data into variables.
    $Name $_REQUEST['Name'] ;
    $Company $_REQUEST['Company'] ;
    $Telephone $_REQUEST['Telephone'] ;
    $Cell $_REQUEST['Cell'] ;
    $Email $_REQUEST['Email'] ;
    $Ref $_REQUEST['Ref'] ;
    $Treatment $_REQUEST['Treatment'] ;
    $Treatment_Comments $_REQUEST['Treatment_Comments'] ;

    $ontime $_REQUEST['ontime'] ;
    $ontime_Comments $_REQUEST['ontime_Comments'] ;

    $Quality $_REQUEST['Quality'] ;
    $Quality_Comments $_REQUEST['Quality_Comments'] ;

    $Informed $_REQUEST['Informed'] ;
    $Informed_Comments $_REQUEST['Informed_Comments'] ;

    $Value $_REQUEST['Value'] ;
    $Value_Comments $_REQUEST['Value_Comments'] ;

    $Suggestions $_REQUEST['Suggestions'] ;


    // If the user tries to access this script directly, redirect them to feedback form,
    if (!isset($_REQUEST['Email'])) {
    header"Location: survey.html" );
    }

    // If the form fields are empty, redirect to the error page.
    elseif (empty($Email) || empty($Cell)) {
    header"Location: error_message.html" );
    }

    // If email injection is detected, redirect to the error page.
    elseif ( isInjected($Email) ) {
    header"Location: error_message.html" );
    }

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,395
    Thanks
    8
    Thanked 1,078 Times in 1,069 Posts
    I just tried it with IE8 and it works.
    Specify which IE is failing.

  • #3
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just tried it with IE8 and it works.
    Specify which IE is failing.
    Doesn't want to work in IE6

  • #4
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    update

    i just discovered that if you press the button right in the top left corner it works, but if you try to press it anywhere else you get nothing!

  • #5
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,395
    Thanks
    8
    Thanked 1,078 Times in 1,069 Posts
    Try removing all of the <style> IE hacks at the top of your script and see what happens.
    You must be positioning something over the submit button within those IE6 and IE7 hacks.


  •  

    Posting Permissions

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