Re: [PHP] track click throughs
Ed, Thank you found it with your help. Cheers Col Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Check the script that records the click. It shouldn't have any output, spaces, or extra lines before or after ?php ? -Original Message- From: cab [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 9:39 PM To: [EMAIL PROTECTED] Subject: [PHP] track click throughs Hi, newbie question I have a linked image, I want to track the users/times the image has been clicked. I've set up another .php page that populates a database with the click, then I wanted to: Header(Location: http://someothersite ); but I get the lovely Headers already set error message. Any suggestions please? Locations of tutorials on this sort of thing. Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] track click throughs
Ed, Sorry it redirects now but on checking the database is no longer being updated? ?php require_once('/home/virtual/site/var/www/cgi-bin/Connections/DB_connection _script.php'); $newUserTracking = mysql_query(INSERT INTO track (user,type) VALUES (' ','Join')); Header(Location: https://secure.ibill.com/cgi-win/ccard/rscookie.exe?RevShareID=what everreturnto=http://www.google.com/index.htm;); ? Help Col Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Check the script that records the click. It shouldn't have any output, spaces, or extra lines before or after ?php ? -Original Message- From: cab [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 9:39 PM To: [EMAIL PROTECTED] Subject: [PHP] track click throughs Hi, newbie question I have a linked image, I want to track the users/times the image has been clicked. I've set up another .php page that populates a database with the click, then I wanted to: Header(Location: http://someothersite ); but I get the lovely Headers already set error message. Any suggestions please? Locations of tutorials on this sort of thing. Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] track click throughs
Hi, newbie question I have a linked image, I want to track the users/times the image has been clicked. I've set up another .php page that populates a database with the click, then I wanted to: Header(Location: http://someothersite ); but I get the lovely Headers already set error message. Any suggestions please? Locations of tutorials on this sort of thing. Col -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] previous page
Larry, Thanks all makes sense, but, if I add this: ?php echo($_SERVER['HTTP_REFERRER']); ? I don't get anything back when the page is called? Cab Larry E . Ullman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a .php page I don't want anyone being able to just open it unless they've been through a previous page that is a disclaimer http referrer etc come to mind but not exactly sure how to implement it in PHP. Yes, you could check the value of $_SERVER['HTTP_REFERRER'] but that's not perfect. Instead, you could have the previous page contain a form with a special hidden input. The form is submitted to the protected page, where you check for that hidden input's value. If that protected page doesn't receive $_POST data containing whatever meaningful data, redirect them accordingly. Hope that helps, Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] previous page
Was ready after searching www.google.com and yes your right about the incorrect spelling of the variable. I also found that some firewalls block the information. So, I now have to go back to the drawing board and build the form. Easy if it was as simple as a form and a submit button but this is a complex spliced image. Larry E . Ullman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks all makes sense, but, if I add this: ?php echo($_SERVER['HTTP_REFERRER']); ? I don't get anything back when the page is called? Yes, that can happen, which is why I said it wasn't perfect. I think using some sort of form to go through is the better option. Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] previous page
Hi People, Just need a bit of direction to a resource or tutorial on this one please. I have a .php page I don't want anyone being able to just open it unless they've been through a previous page that is a disclaimer http referrer etc come to mind but not exactly sure how to implement it in PHP. You kind considerate suggestions are appreciated. Thanks CAB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php