PDA

View Full Version : Pass JS variable to PHP - history.go(-2)



StarTrek
April 20th, 2002, 16:56
<script language="JavaScript1.1">
if (document.images)
{
refstat = new
Image(1,1)
refstat.src ="20.php-------"+escape(+history.go(-2))
}
</script>

20.php write $ref to file, but not write correct data (url), returned "NaN" and "Undefined"
The above code not work. When I loading page with above js code, the browser automatically go back with two pages ago.

How I can let us I do?