bryant Posted October 4, 2008 Share Posted October 4, 2008 Hi -- i'm a n00b to php and have started to take on some very basic php ajax tutorials... so ive got the basic setup with a html page, javascript file and a php file...im doing a very basic call to the php that is just supposed to return my name. when the xmlHTTP object gets returned the responseText property is the all the code from my php file... ive tried two different tutorials with the same result.. could it be somthing with the configuration of my server? Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted October 4, 2008 Share Posted October 4, 2008 Either the .php file is not being parsed as php code or the code in that file is not being parsed as php code. What is your php file name and post the php code for us to examine, including any opening and closing php tags in that file. Quote Link to comment Share on other sites More sharing options...
ngreenwood6 Posted October 4, 2008 Share Posted October 4, 2008 Can you post some code for us to look at? Quote Link to comment Share on other sites More sharing options...
bryant Posted October 5, 2008 Author Share Posted October 5, 2008 here is one <?php $q = $_GET["q"]; echo "Bryant " . $q ?> and here is another <?php if(isset($_GET['inputText'])) { $uppercase = strtoupper($_GET['inputText']); echo $uppercase; } ?> Quote Link to comment Share on other sites More sharing options...
ngreenwood6 Posted October 5, 2008 Share Posted October 5, 2008 That looks ok but what does the javascript page look like. If we cant see what the page is doing we cant help you. Quote Link to comment Share on other sites More sharing options...
ranga Posted October 17, 2008 Share Posted October 17, 2008 Hey, the issue could be with your query string, try using the full url instead of the page alone. var queryString = "http://localhost//quickstart//upperCase.php?"; instead of var queryString = "upperCase.php?"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.