Problem with HADD not passing variables

Discuss free scripts and topics provided by hscripts.com. Share information on topics related to our scripts and materials

Problem with HADD not passing variables

New postby bouncdchk on Wed Oct 28, 2009 10:40 am

I have a problem with HADD not passing variables. I've tried using urlencode but I guess I just don't know enough about php to solve the issue.

If I have say: http://www.url.com/?s=variable&doesnt&send

it comes out with:

http://www.url.com/?s=variable

I need it to send the whole variable.

I'm looking referrals because the site doesn't know who I am.
bouncdchk
Newbee
Newbee
 
Posts: 4
Joined: Sat Dec 08, 2007 9:41 am


Re: Problem with HADD not passing variables

New postby Vinoth on Wed Oct 28, 2009 11:25 am

Hi bouncdchk,
Use code like
$value="http://www.url.com/?s=".urlencode("variable&doesnt&send");
</code>
bouncdchk wrote:I have a problem with HADD not passing variables. I've tried using urlencode but I guess I just don't know enough about php to solve the issue.

If I have say: http://www.url.com/?s=variable&doesnt&send

it comes out with:

http://www.url.com/?s=variable

I need it to send the whole variable.

I'm looking referrals because the site doesn't know who I am.
Vinoth
Enthusiast
Enthusiast
 
Posts: 299
Joined: Sat Sep 06, 2008 1:31 pm
Location: Coimbatore

Re: Problem with HADD not passing variables

New postby bouncdchk on Wed Oct 28, 2009 12:40 pm

Hi bouncdchk,
Use code like
$value="http://www.url.com/?s=".urlencode("variable&doesnt&send");
</code>


The problem is I'm not directly passing the variable myself. it's the HAD.PHP script. The passing part reads:

$name = $_GET['name'];
$url = $_GET['url'];


$rip = $_SERVER['REMOTE_ADDR'];

XX this code removed for space conservation xx

?>


<script language=javascript>

document.location.href="<?php echo ($url); ?>";
</script>

And the actual link would be:

http://www.MYDOMAINNAME.com/adserve/had.php?name=120x600_roll_ans.gif&url=http://links.roll.com/?s=asian&p=ft&c=1&r=23794&j=13&t=treet&src=ads

But it will only transfer:

http://links.roll.com/?s=asian

So I'm not sure how to alter it properly.

Thanks.
bouncdchk
Newbee
Newbee
 
Posts: 4
Joined: Sat Dec 08, 2007 9:41 am


Return to hscripts forum

Who is online

Users browsing this forum: No registered users and 1 guest



cron