PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<script type="text/javascript">
var pageViewerID = "somenumbers";
var pageOwnerID = "somenumbers";
var pageViewerFName = "someone'sname";
var pageOwnerFName = "someone'sname";
var pandoraRegFlag = '-1';
var userHasBlog = 't';
var HbxTrackingEnabled = false;
</script>
Its taken from a social networking site where my profile is located! The pageViewerID and pageViewerFName would change everytime a different person views my profile! Now, my question is, how do I store/pass those pageViewerFName and pageViewerID variables to a PHP or CGI page so that the data would be stored and I could see who viewed my profile just by viewing the PHP / CGI page?
Please help me!
Thank you in advance!
Last edited by boryev on Wed Oct 18, 2006 9:17 pm, edited 2 times in total.
Construct a URL out of them and request something from wherever the PHP file is hosted. An image, some Javascript, something. It's usually better to use an image for various reasons.
feyd wrote:Construct a URL out of them and request something from wherever the PHP file is hosted. An image, some Javascript, something. It's usually better to use an image for various reasons.
However you like. The file/script/whatever you request will need to record it in some fashion that you can later extract data from; be it database, flat file, some other storage media is up to you.
feyd wrote:However you like. The file/script/whatever you request will need to record it in some fashion that you can later extract data from; be it database, flat file, some other storage media is up to you.
What is your knowledge level of PHP? .. of MySQL? I'll tell you up front, if you're looking for me to write it for you, you're going to be disappointed; I won't do it.