English 中文(简体)
问题,通过分类收集数据
原标题:Problem while sending data through jquery

我通过支部发送数据。 我的同类法典是......

$( #pcpmnum ).blur(function(){
//alert("HIiiiiii");
var pcpmnum = $("#pcpmnum").val();
if(pcpmnum === "" | pcpmnum === null)
    { 
        alert("Please Enter Mobile Number");
    }
else
    {
        alert(pcpmnum);
        $.post("searchpcp.php", {cntctnumber: "+pcpmnum+"}, function(){
            alert("Success");
                    }
    }

});

我只用在我的营地档案中。

echo "HIIII";

员额职能是否等同于阿贾克斯职能?

最佳回答

simply do

  {cntctnumber: pcpmnum, second:"second variable" }

和在实验室档案中,你能够获得价值。

$contact = $_POST["cntctnumber"]; // you will get the value of pcpmnum here
$sec = $_POST["second"]; // you will get "second variable" here

在成功时,请回击以下论点:data,在你的案件中,包括服务器的回复,例如,在您的网址上,你是

...
echo"howdy";

用户部分<代码>数据将持有这一答复

 $.post("searchpcp.php", {cntctnumber: pcpmnum, second:"second variable" }, function(data){
            alert(data);//howdy
           });

here are some useful links

Returning JSON from PHP to JavaScript?

问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签