I am trying to write some javascript to call a PHP program ans passing variables from the Watch process. The php program connects to my database and executes the inserts. No it all works well when I execute the script out of Planet Press. But when I run the process I get an error stating Microsoft Jscript runtime error:'window' is undefined.

Here is the 1 line code

I need help and/or some sample code to insert into a database.