im CakePHP'de kontrolör ve $ _POST kullanarak almak için javascript işlevi Passing değerleri ile acı.
i farklı şekillerde bunu denedim ama önermek için lütfen başarı alamadım.
Benim kod denetleyicisi
function index(){
$wow='rajesh';
$this->set('data',$wow);
$raj=$_POST['value'];
echo $raj;
}
javascript fonksiyonu
checkLength(obj){
alert(obj);
//var raj=document.getElementById("searchText").value;
//alert(raj);
remoteCall("/cakephp/notes/index","&raj="+obj,"");
//window.location.href = "http://localhost/cakephp/notes/index/value=" + obj ;
}