Jorge
Jorge

Reputation: 18257

Can't make work an ajax post to php

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

$.post("../Backend/buscarCliente.php",{tipoBusqueda:"'"+$('#sltTipoBusqueda').val()+"'"},respuesta);

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

enter image description here

Upvotes: 0

Views: 68

Answers (1)

aziz punjani
aziz punjani

Reputation: 25786

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

Upvotes: 2

Related Questions