Forum Moderators: coopster
I am open suggestions on cookie based tracking or session based tracking. My site is in PHP and I use MySql to store the contact form data.
Any help will be highly appreciated.
Thanks
something very simple would be at the top of every page
session_start();
$_SESSION['visited'] .= ',' . $_SERVER['PHP_SELF'];
this should just keep appending the name name of the next page visited to a session var, ending up with a comma delimited list of pages
then on your form you could have
<input type="hidden" name="visited" value="<?php echo $_SESSION['visited'];?>">
which would submitted with your form
you really need to look at sessions and how they work and are configured though as this isn't a hugely efficient way to do it
[php.net...]