Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
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
Old Jan 17th, 2008, 2:22 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
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?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 17th, 2008, 10:29 AM   #3
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,784
Rep Power: 5 Sane will become famous soon enough
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.
Sane is online now   Reply With Quote
Reply

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 3:00 PM.

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