Hi all,

like in the subject, I do a query with $.ajax on a php file,
the query retrieve a "name" and a "surname", in which format I must send
out the data from my php file? And how I can manage this data to fill
in the appropiate field in my form?

My actually jQuery code :
$.ajax({
  type: "POST",
  url: "test.php",
  data: "query:edit&id="+idval,
  success: function(data){
    //what code I must put inside here, first for reading the data
    //and next using it to fill the fields in my form?
  }
});

The query in which format must send out the data?
Question: something like this is correct : 
<?
  echo "{name:'pippo',surname:'pluto'}";
?>

Thanks for any help, advise and suggest.
--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

Reply via email to