I've got a few questions...
I'm bulding a counter for my website and know what i'd like to have it do and know how i'd like to implement it, but i guess i need to know if what i want to do can actually be done..
What i'm wanting to do is buld some code, with PHP and JS, that serves as a counter for the web page..
What i'd like to do is "install" it in each web page by simply including the counter files in the code.
ie..
Code: Select all
<script language="javascript" src="getSpecs.js"></script>
<?
include(counter.php);
?>From what i've been reading i'm not sure that this is possible because in order to actually get the js data to counter.php i'll have to submit the js data somehow..
is that what i'm looking at? Would it be better to log the js data on the next page loaded and send a page identifier along with the data telling mySQL where to put the js data?
any advice would be greatly appreciated..
also, if that makes no sense.. please let me know
Thanks
Will