PDA

View Full Version : Can't DELETE a database entry


notset4life
10-17-02, 06:46 PM
I am getting script errors generated by this:

document.write("<a href="\?PHPSESSID=6ac65b9149c20ae11fe4dd02dcbadf9f""http://top.addfreestats.com/cgi-bin/main.cgi?usr=00091130P000\" target=\"_blank\">");

After refreshing my broswer, it appears this way:

document.write("<a href="\http://top.addfreestats.com/cgi-bin/main.cgi?usr=00091130P000\" target=\"_blank\">");

And the script error is gone.

Can anyone tell me where PHPSESSID and all those numbers and letters are coming from? The script above is NOT the only place this appears. Oftentime, it also appears in LINKS, but when the browser is refreshed, it's gone.

Thanks
Vin

davros
10-18-02, 05:01 AM
The letters and numbers are comming from the script. Something is calling that url..

One thing that sticks out like a sore thumb is this:

document.write("<a href="\http://top.addfreestats.com/cgi-bin...r=00091130P000\" target=\"_blank\">");

It should be like this..

document.write("<a href=\"http://top.addfreestats.com/cgi-bin...r=00091130P000\" target=\"_blank\">");


In both instances. The \ is used as an escape. to tell a script that the quote is to br printed verbatim and is not a part of a command.

What sort of script are you running that is calling the web stats? Perhaps if we knew what it was a better definition may be possible.

Looks to me like PHP Session ID (PHPSESSID) but that's just a wild guess.. Either way, try putting the \ before the quotes near href= It shuold be href=\"