Thread: how to
View Single Post
Old Jan 16th, 2008, 9:58 PM   #1
armend90
Newbie
 
Join Date: Feb 2007
Posts: 6
Rep Power: 0 armend90 is on a distinguished road
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
#############
armend90 is offline   Reply With Quote