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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...