Make php return json. Not sure about this part since I'm not a php programmer, but javascript will look like this:
$('#Get-Info').submit(function() {
$.post("info.php",
function(data){
if ( data['success'] ) {
}
}, "json"
);
return false; });
The only difference is that jQuery will automatically parse the data as json, the datatype parameter. Additional information .
If I'm not mistaken, this should work for php, although it requires PHP 5.2.0:
echo json_encode(array('success' => true));
.