Jump to content

open with url


jwk811

Recommended Posts

xmlhttp.open("POST", 'lib/sendMessage.php', true);

 

the url needs to change on every page. that will work for just the home page.

other pages would need ../lib/sendMessage.php because they are in different folders.

 

how can i make it so it works no matter what page they are on.

i tried putting the domain like http://www.domain.com/lib/sendMessage.php but that does not work!

 

i thought i could use my web root from my php function and <?php  echo WEB_ROOT; ?> but that wont work. there has got to be a way and i want it so you dont have to type in the url and it gets the url itself like my web_root function does so it can be used with different websites

 

PLEASE HELP!!

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.