Jump to content

responseText returns my entire PHP code


bryant

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/127058-responsetext-returns-my-entire-php-code/
Share on other sites

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.

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.