0

我知道还有其他与我相同的问题,但我似乎无法解决这个问题?

我对 php 比较陌生,这个页面是由其他人建立的,他现在已经继续前进,我无法联系,所以我被困住了,真的很感激这个页面的一些帮助。

该代码适用于除 IE 之外的所有内容,我单击按钮,没有任何反应,没有错误,什么都没有。

编码:

    <!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>

我意识到这对某些人来说可能很简单,但作为一个新手并且留下了这段代码,我正在努力并希望那里有一些不错的编码员感到慈善。

手指交叉。

4

0 回答 0