I want to track the clicks on my site. My existing links look like this <a href="http://forums.digitalpoint.com" target="_blank">Press Me</a> I made my links look like this <a href="click.php?id=12">Press Me</a>. I have a php script in the root directory of my website named click.php, and the pseudo code in click.php looks like this. $id = $_REQUEST['id']; $get_url = mysql_query("SELECT url FROM myurltable WHERE id = '".$id."'"); // More code to get the value of $url to a real url // Even more code to insert click data into my database. // I finally want to send my visitor to their destination. header('Location: $url "); PHP: This code works well for getting my visitors to their correct destination and I get real click statistics, but my visitors have now navigated off my site, because I did not open a new window the way my old link did. Is there a way I can make click.php open a new window and leave my site in the existing window?
Hey there, You can do: <a href="URL" target="_blank">Link to another place</a> Code (markup): Hope that helps! Francisco
as Francisco said you still can use target="_blank" example <a href="click.php?id=12" target="_blank">Press Me</a>