function expire(){ jQuery.ajax({ type: "POST", dataType: "html", url: webpath + "ajax.expire.php", data: ({ pageaction: "expire", username: jQuery('#username').val() }), success: function(responseText, responseStatus) { jQuery("#divContent").html(responseText); } }); } function submitRenew(){ if(document.getElementById("payproof").value==""){ alert('Please upload bank in slip.'); }else{ jQuery.ajax({ type: "POST", dataType: "html", url: webpath + "ajax.expire.php", data: ({ pageaction: "submitRenew", price: jQuery("#price").val() }), success: function(responseText, responseStatus) { jQuery("#divContent").html(responseText); } }); } } function suspend(){ jQuery.ajax({ type: "POST", dataType: "html", url: webpath + "ajax.expire.php", data: ({ pageaction: "suspend", username: jQuery('#username').val() }), success: function(responseText, responseStatus) { jQuery("#divContent").html(responseText); } }); }