PHP help.....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mallory
Forum Newbie
Posts: 2
Joined: Thu Oct 23, 2003 4:34 am

PHP help.....

Post by mallory »

I have created a site that links into a external .asp database.

I want to install clicktracks to track user. Click say I can track people as they leave my site to go into the database, in order to do so I have to create a php page called exit.php with the following code:

<?php

$url = @$_GET["url"];

header("Location: http://".$url); exit;

?>

All fine and simple - however the problem seems to arise when putting the code to go to this php page into my links.

This is my original link that works correctly within my site:

<a href="http://www.net1on1uk.co.uk/modules/shop ... dealer=382">

it links to a asp database that will track people are coming from my site.

Now when I put in the php code that click advise ('exit.php?url=) the link now looks like this:

<a href='exit.php?url=net1on1uk.co.uk/modules/shop/noframes_ranges.asp?rangeid=1&catid=1&sheet=&dealer=382'>

However when the user now click on this link the database suddenly throws up 'sorry this category cannot be found'

Click state that is outside the realms of their help.

Can any of you guys help?

Cheers

Mallory
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

Post Reply