در هر دو تا تیبل تعریف کردم ...

اون دومی رو نه انجام ندادم . main.js رو انجام نداده بودم ...

اینجوری میشه دیگه :

کد PHP:
        $("#submit").click(function() {
            var 
card     = $('input:radio[name=card]:checked').val();
            var 
qty     = $("select#qty option:selected").val();
            var 
gateway = $("select#gateway option:selected").val();
            var 
email     = $('input:text[name=email]').val();
            var 
mobile     = $('input:text[name=mobile]').val();
            var 
tozih     = $('textarea:text[name=tozih]').val();
            $(
"#loader").html('<img src="statics/image/loader.gif" align="left">');
            $.
ajax({
            
type"POST",
            
url"index.php",
            
data: { card:cardqty:qtygateway:gatewayemail:emailmobile:mobiletozih:tozihaction"payit"},
            
success: function(theResponse) {
                var 
theResponseSplitter     theResponse.split("__");
                var 
theResponseMessage         theResponseSplitter[0];
                var 
theResponseStatus         theResponseSplitter[1];
                if(
theResponseStatus == 1)
                {
                    
window.location.href theResponseMessage;
                }
                else
                {
                    
jQuery('body').showMessage({
                        
'thisMessage':[theResponseMessage],'className':'error','displayNavigation':false,autoClose:false,opacity:75
                    
});
                }
                $(
"#loader").empty();
            }
            });

        });