Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

fire sql on hyperlink click before opening external link

General discussions related to php

Moderators: macek, egami, gesf

fire sql on hyperlink click before opening external link

Postby drwoowoo » Sat Aug 25, 2012 2:22 am

hi,

i have some links which open other sites in a new window/tab and need to track this activity

am wondering how i can fire some sql yet still spawn a new window:

ie i have the html as:

<a href="http://google.com" target="_new">hr mr lala</a>

yet want to run sql on its click and still fire the new open window

any help much appreciated.
drwoowoo
New php-forum User
New php-forum User
 
Posts: 1
Joined: Sat Aug 25, 2012 2:20 am

Re: fire sql on hyperlink click before opening external link

Postby NigelRen » Sat Aug 25, 2012 10:18 am

The easiest way would be to change the link to a php script on your site which logs the activity and then forwards onto the target URL.
NigelRen
php-forum Active User
php-forum Active User
 
Posts: 450
Joined: Fri Aug 05, 2011 9:53 am


Return to PHP General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.