![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2007
Posts: 6
Rep Power: 0
![]() |
how to
I have an HTML file named index.html on one server, and another PHP file named ads.php on another server, and in PHP I have an $_GET['pub'] method set by the URL how can I get the value of $_GET['pub'] on the index.html which is located on another server?
EXAMPLES : ##################################################################################### Client : index.html ##################################################################################### <script type="text/javascript"> pub = "test"; </script> <script type="text/javascript" src='http://remotedomain.xxx/ads.php?p=1234567890'> </script> REMOTE ##################################################################################### Server : ads.php 1 another Server ############################################################ $ppp = $_REQUEST['p']; or $ppp = $_GET['p']; echo $ppp; --> retun 1234567890 $puu = $_REQUEST['pub']; or $puu = $_GET['pub']; echo $puu; --> return NULL ############# |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Re: how to
Is it not possible to make index.html a PHP file instead and pass $_GET['pub'] through the query string of the ads.php URL?
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,825
Rep Power: 5
![]() |
Re: how to
Something tells me that Armend's attempting to work with something he doesn't understand, which gives me the impression that he wants us to do his job for him. Look at all of the other posts he's made at PFO. There's a broad range of uninformative questions, coupled with responses that show no understanding... Maybe it's an issue with language differences, but I'm just of the impression that this is a job we're doing for him.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|