Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
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
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC