POST数据并以CURL作为变量返回(不输出)

时间:2016-04-22 19:16:54

标签: php jquery curl

我的任务是将选定的自动填充值从index.php发布到test.php。我需要将数据作为变量返回index.php而不是输出。我想我需要使用{{ 1}}。但我还没有得到任何积极的结果。

的index.php:

php CURL

test.php的:

select: function(event, ui)
      {
selected=ui.item.value;

    jQuery.ajax({

url:"test.php",
data:{selected},
type:"POST",

success:function(data){

}
</script>

<?php

if(isset($response)){

echo $response;
}

0 个答案:

没有答案
相关问题