Hello everybody,
for my application I want to implement a email-clickcounter, next to link-clickcounter. Most links and emails (mailto:) appear on a page that gives details about a search-result from my home-made searchmodule. I have set up the counting system like this :
Every link is redirected to a click.php-file. In the redirecting url I have appended an id, a reference and a target :
- The id tells the script which id in the mysqli-table needs to be updated.
- The reference tells the script which table to use to update .
- The target is the url that I use in the header("Location:...)-function to redirect.
This works for the links, but not for the email-adresses I'd like to send. The click gets registrated, but the email form is not opened. I know the header()-function is not the right way, but I don't know what IS the right way.
Can somebody help me out on this ?
Thanks, much appreciated ...