Jump to content

link to a PHP page


lukeUrtnoedki

Recommended Posts

I have a pretty simple form

 

php_class.teamluke.net/ajax/send.php

 

and am trying to use ajax to link to it, so it can be read by a php page, heres the script

<script>
function showCar(str) {
  var xhttp = new XMLHttpRequest();
  xhttp.onreadystatechange = function() {
    if (this.readyState == 4 && this.status == 200) {
      document.getElementById("myForm")..style.display = none;
      document.getElementById("result").style.display = block;	
      document.getElementById("result").innerHTML = this.responseText;
    }
  };
    xhttp.open("GET", "showCar.php?id="+str, true);
  xhttp.send();
}
</script>

but the php page works...

 

php_class.teamluke.net/ajax/showCar.php?id=1

Edited by requinix
I still don't know why ipb doesn't like that domain name
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • 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.