I have a jquery-ajax function that sends data to a php script and the problem is with the return value, it returns the whole page instead of single value.
Thank you
Use condition to verify if $_POST empty in you main page or index.php to not send the whole page in response ajax
// the header pages the body the include pages the scripts pages the footer