PHP & ASP
Posted: Thu Oct 23, 2003 5:58 am
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
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