Announcement

Collapse
No announcement yet.

A little help with some coding...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • A little help with some coding...

    Can anyone help me with the following code?
    The form works 100% fine in Firefox but on IE 6 and IE 7 if I hit Submit, the page does nothing. Even Reset doesn't work.
    PHP Code:
    <meta http-equiv=Content-Type content="text/html; charset=us-ascii">
    <
    meta name=Generator content="Microsoft Word 11 (filtered)">
    <
    title>Inappropriate Feedback Form</title>
    <
    meta name=Author content="xxxxxxxxx">
    <
    meta name=Keywords content="xxxxxxxxx">
    <
    meta name=Description content="xxxxxxxxxxx">
    <
    script language="javascript" type="text/javascript" src="datetimepicker.js">
    //Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
    //Script featured on JavaScript Kit (http://www.javascriptkit.com)
    //For this script, visit http://www.javascriptkit.com
    </script>
    <
    script type="text/javascript">
    function 
    Load_id()
    **
    var 
    id document.feedback.dept.options[document.feedback.dept.selectedIndex].value
    var id_txt "?id="
    location id_txt id
    **
    </
    script>
    </
    head>
    <
    body lang=EN-GB>
    <
    form name="feedback" action="add_feedback.php" method=POST enctype="application/x-www-form-urlencoded">
    <
    div align=center>
    <
    table border=0 cellspacing=3 cellpadding=0 width=617>
     <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Your Name : </p>
        </
    td>
        <
    td width="63%" valign=top>
         <
    p><b>xxxxxxxxxxxxxxxxx</b></p>
         </
    td>
      </
    tr>
      <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Select Department : </p>
        </
    td>
        <
    td width="63%" valign=top>
                <
    select name="dept" onChange="Load_id()"><option value='blank'>-- Select Department --</option><option SELECTED value="xxxxxxxxxxx"SELECTED >xxxxxxxxxxxxxxx</option><option value="xxxxxxxxxx" >xxxxxxxxxxxxxxxxx</option></select>    </td>
      </
    tr>
        <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Select Advisor : </p>
        </
    td>
            <
    td>
                <
    select  name="advisor"><option value='blank'>-- Select Advisor --</option><option value="xxxxxxxxxxx">xxxxxxxxx</option><option value="xxxxxxxxxxx">xxxxxxxxxx</option><option value="xxxxxxxxxxx">xxxxxxxxxxxx</option><option value="xxxxxxxxxxx">xxxxxxxxxxxx</option><option value="xxxxxxxxxxx">xxxxxxxxxxx</option></select></form>        </td>
        </
    tr>
      <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Date/Time of Call : </p>
        </
    td>
        <
    td width="63%" valign=top>
         <
    p><input name="timedate" id="timedate" type="text" size="25"><a href="javascript:NewCal('timedate','ddmmmyyyy',true,24)"><img src="images/cal.gif" width="16" height="16" border="0" alt="Pick a date"></a></p>
        </
    td>
      </
    tr>
      <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Area : </p>
        </
    td>
        <
    td width="63%" valign=top>
         <
    p><SELECT NAME="area">
        <
    OPTION SELECTED VALUE="Billing">Billing Enquiry</option>
        <
    OPTION VALUE="Cancellation">Cancellation</option>
        <
    OPTION VALUE="Customer Service">Customer Service</option>
       </
    SELECT></p>
        </
    td>
      </
    tr>
        <
    tr>
            <
    td width="36%" valign=top><p align=right>Inappropriate : </p></td>
            <
    td width="63%" valign=top><input type="radio" name="fb_cat" value="Inappropriate" checked="checked"/></td>
        </
    tr>
        <
    tr>
            <
    td width="36%" valign=top><p align=right>Cold Transfer : </p></td>
            <
    td width="63%" valign=top><input type="radio" name="fb_cat" value="Cold"/></td>
        </
    tr>
        <
    tr>
            <
    td width="36%" valign=top><p align=right>Positive Feedback : </p></td>
            <
    td width="63%" valign=top><input type="radio" name="fb_cat" value="Positive" /></td>
        </
    tr>
     <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Customer Name : </p>
        </
    td>
        <
    td width="63%" valign=top>
         <
    p><b><input name="cust_name" type="text" size="51" maxlength="50"/></b></p>
         </
    td>
      </
    tr>
     <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Customer CLI : </p>
        </
    td>
        <
    td width="63%" valign=top>
         <
    p><b><input name="cust_cli" type="text" size="15" maxlength="15"/></b></p>
         </
    td>
      </
    tr>
     <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Amdocs Ref : </p>
        </
    td>
        <
    td width="63%" valign=top>
         <
    p><b><input name="amdocs_ref" type="text" size="10" maxlength="10"/></b></p>
         </
    td>
      </
    tr>
      <
    tr>
        <
    td width="36%" valign=top>
         <
    p align=right>Details:</p>
        </
    td>
        <
    td width="63%" valign=top>
         <
    p><TEXTAREA name="details" rows="10" cols="40"></TEXTAREA></p>
        </
    td>
      </
    tr>
      <
    tr>
        <
    td width="100%" colspan=2 valign=top>
         <
    p align=center><INPUT TYPE="submit" METHOD="POST" NAME="Submit" VALUE="submit"><INPUT TYPE="reset" NAME="reset"></p>
        </
    td>
      </
    tr>
    </
    table>
    </
    div>
    </
    form>
     
    </
    body>
    </
    html
    Can anyone help?

  • #2
    Your Load_id() function is throwing javascript errors in IE.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      Thanks Wayne

      I think it is because that was the generated page. Managed to find the problem... had an extra
      PHP Code:
      </form
      in the script where it shouldnt have been

      Now it works in IE, Opera and Firefox

      Comment

      Related Topics

      Collapse

      Working...
      X