javascript - how can I add a post identifier to my ajax -
i want add post identifier ajax. right way identify post checking if 1 of inputs present. here code:
<input name="id" id="id" type="text">
if input name id present posted execute php code. here code:
if(isset($_post['id'])){
the issue having want put multiple id posts in same page need sort them know post doing. want add post identifier.
if(isset($_post['addlogin'])){
how can add post identifier ajax function. here code:
$(function() { $("button#loginsubmit").click(function(){ $.ajax({ type: "post", url: "", data: $('form.loginform').serialize(),
i wanted add {last_time:last_time}
how can add post identifier?
like this:
data: { last_time : "test"}
Comments
Post a Comment