开发者

Can't make work an ajax post to php

开发者 https://www.devze.com 2023-04-12 18:17 出处:网络
Where it\'s my problem for me the code look\'s fine $.post(\"../Backend/buscarCliente.php\",{tipoBusqueda:\"\'\"+$(\'#sltTipoBusqueda\').val()+\"\'\"},respuest开发者_运维问答a);

Where it's my problem for me the code look's fine

$.post("../Backend/buscarCliente.php",{tipoBusqueda:"'"+$('#sltTipoBusqueda').val()+"'"},respuest开发者_运维问答a);

the php

<?php  
    //include all DAO files
    header('Content-Type: text/html; charset=utf-8');
    require_once('include_dao.php');
    echo $_POST['tipoBusqueda'];
 ?> 

i'm already debugged with charles debugging proxy and send this message, so i think the path it's good

Can't make work an ajax post to php


Start out really simple, first just do an echo $_POST['tipoBusqueda'] without the includes and see if that works.

0

精彩评论

暂无评论...
验证码 换一张
取 消