blackcell Posted December 18, 2008 Share Posted December 18, 2008 What does the client side script expect back from the server response? Like you send the HTTP request and wait for it by looking at the Ready State, but if I call a script at /scripts/findEmail.ascript.php, how do I send what I want the response to be in the scripts/findEmail.ascript.php file using php programming? Sorry if you don't understand this is hard to explain but very basic. Edit: Do you just echo the result that needs to be sent back to the client? Link to comment https://forums.phpfreaks.com/topic/137583-solved-ajaxphp-what-does-the-client-side-script/ Share on other sites More sharing options...
rhodesa Posted December 18, 2008 Share Posted December 18, 2008 whatever the output of /scripts/findEmail.ascript.php is is what is returned. so if it does: <?php echo "Hello World!"; ?> then the string: Hello World! is what is returned Link to comment https://forums.phpfreaks.com/topic/137583-solved-ajaxphp-what-does-the-client-side-script/#findComment-719097 Share on other sites More sharing options...
blackcell Posted December 18, 2008 Author Share Posted December 18, 2008 Ok thanks man. Link to comment https://forums.phpfreaks.com/topic/137583-solved-ajaxphp-what-does-the-client-side-script/#findComment-719196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.