QuestionsWordPress Ajax hook
mmkevinsmith0610 asked 6 months ago

add_action( ‘wp_ajax_webservice_ajax’, ‘webservice_ajax’ );

function webservice_ajax() {

if($_POST[‘type’]==’detailpage’)

{ //echo ‘test’; die;

include ‘webservicefullclientviewshow.php’;

}

else if($_POST[‘expstatus’]==’true’){

require(‘exportview.php’);

}else{

require(‘firstview.php’);

}

die;

}

 

Your Answer
Login
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.