Debugging AJAX Request – Coding Cyber

Debugging AJAX Request

Debugging AJAX Request

To debug any values in PHP code, just use echo with the return. So the rest of the code won’t be processed, you will be able to see the value in the variable.

Other Articles in Learn AJAX

This is example code in ajax.pho file

echo $name = $_POST['name'];
// use echo with return to debug 
// return HTML/PHP - should use echo

$string = "<p style='color:blue;'>You are learning PHP Ajax with <strong>". $name."</strong></p>";
echo $string;

Vivek Vengala

Vivek Vengala is a Online Entrepreneur, Web Developer from Hyderabad India.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: