Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   how to (http://www.programmingforums.org/showthread.php?t=14958)

armend90 Jan 16th, 2008 9:58 PM

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
#############


Ooble Jan 17th, 2008 2:22 AM

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?

Sane Jan 17th, 2008 10:29 AM

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.


All times are GMT -5. The time now is 8:11 PM.

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