Php 表单提交按钮在IE中不起作用

Php 表单提交按钮在IE中不起作用,php,html,internet-explorer,Php,Html,Internet Explorer,我知道还有其他问题和我的问题一样,但我似乎无法解决这个问题 我对php比较陌生,这个页面是由其他人创建的,他现在已经离开了,我无法联系,所以我被卡住了,非常感谢在这方面的帮助 该代码在任何情况下都能工作,但我单击按钮,什么也没有发生,没有错误,什么都没有 守则: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

我知道还有其他问题和我的问题一样,但我似乎无法解决这个问题

我对php比较陌生,这个页面是由其他人创建的,他现在已经离开了,我无法联系,所以我被卡住了,非常感谢在这方面的帮助

该代码在任何情况下都能工作,但我单击按钮,什么也没有发生,没有错误,什么都没有

守则:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Track your package</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
 <script>window.jQuery || document.write('<script src="../shared/js/jquery-1.9.1.min.js">\x3C/script>')</script>
 <script>
$(document).ready(function() {
    $('#submit').click(function() { 

        if ($('#abcID').val() != "") {

            var q = $('#abcID').val();          
            $.getJSON('http://www.packmanager.co.uk/services/pack_status.php?user='+q, function(data) {         
                $.each(data, function(key, val) {               
                    //only one item required
                    $('#response').html("<p>Current Delivery Status: " + val[0].status+ "</p>");
                })
            });

        } else {
            $('#response').html("<p>Valid Membership Number Required</p>");
        }

        return false;
    });
});
</script>
</head>
<body style="background-color:#dcdcdc;margin:0px;padding:0px">
<!-- Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%;padding:20px;">
<tr>
    <td>

        <!-- Tables are the most common way to format your email consistently. Set your table widths inside cells and in most cases reset cellpadding, cellspacing, and border to zero. Use nested tables as a way to space effectively in your message. -->
        <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:800px;background-color:#fff;border:1px solid #000;">

            <tr>
                <td valign="top" style="padding:20px;font-family:arial;font-size:13px;">
                <h1 style="color:#F00;">Welcome to Tracker.</h1>
                <p>Here you can check on the status of your membership application, just enter the details supplied in your welcome email and you will be presented with the status of your membership pack.</p>                    

                <form name="checkstatus" action="#" method="get">
                    <p>
                    <label for="abcID">Membership number:</label>
                    <input type="text" name="abcID" id="abcID" />
                    <input type="submit" id="submit" value="CHECK" />
                    </p> 
                </form>
                <p id="response"></p>
                </td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:600px;padding-top:10px">
            <tr>
                <td valign="top" style="text-align:center;">
                    <p style="color:#333333;font-family:arial;font-size:10px;">small print here</p>
                    <p style="color:#333333;font-family:arial;font-size:10px;">Footer text
              </td>
            </tr>
        </table>
    </td>
</tr>
</table>
<!-- End of wrapper table -->
</body>
</html>

追踪你的包裹
window.jQuery | | document.write('\x3C/script>'))
$(文档).ready(函数(){
$(“#提交”)。单击(函数(){
if($('#abcID').val()!=“”){
var q=$('#abcID').val();
$.getJSON('http://www.packmanager.co.uk/services/pack_status.php?user='+q,函数(数据){
$.each(数据、函数(键、val){
//只需要一个项目
$('#response').html(“当前交付状态:“+val[0]。状态+”

”; }) }); }否则{ $('#response').html(“需要有效的会员编号”

”; } 返回false; }); }); 欢迎来到跟踪器。 在这里,您可以查看您的会员申请状态,只需输入欢迎电子邮件中提供的详细信息,您就会看到您的会员包状态。

会员编号:

此处的小字体

页脚文本
我意识到这对一些人来说可能很简单,但作为一个新手,我只剩下这段代码了,我很挣扎,希望有一些优秀的程序员能感到慈善


祈求好运。

请始终查看开发人员控制台(按
[F12]
)。您是否看到任何错误?请始终指定您正在测试的IE版本。另外,请检查浏览器模式;它是在兼容模式下运行还是在怪癖模式下运行?哦,那你为什么要使用来自googleapis.com的jQuery 1.5.1,而使用1.9.1作为后备???这两个版本都应该使用相同的版本(最好是更新的版本)。刚刚在IE8-10中测试过,似乎工作正常。将此添加到您的
$.getJSON
请求
.error(函数(jqXHR,textStatus,errorhorn){alert(errorhorn);})
嗨,ComFreek和Andrew,我在控制台中看不到任何错误,我目前使用的是IE 8。