Jump to content
phn221181

W3 Schools AJAX / PHP tutorial doesn't work

Recommended Posts

hey people,

i tried to reproduce the "asp php" tutorial from W3Schools. this one

if i copy it to my webspace and test it, the return is the hole code of the gethint.asp file. Instead of a match from the string, the responseText ist the whole file. Why?

this is my my testing envivroment. someone can tell me the mistake?

Share this post


Link to post
Share on other sites

It should be Response.Write, but since I can actually read the asp file, there is something else going on as well, as I should not be able to see such coding.

Share this post


Link to post
Share on other sites

If it's returning the code then the server is not executing the file.  Maybe the web server doesn't support ASP, maybe it's just not configured correctly.

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×