View Full Version : execute php with javascript?

03-22-2005, 09:33 AM
ok, i ahvent really taken the time, nor learned really ANY javascript, but, i was wondering if it would be possible to execute either an internal php script, or and external php script file using the javascript onUnload command in the body. I am trying to come up with another way to log people out, and i know php to do it, jsut want to use the js onunload command to execute it, if it is possible, if anyone knows how to do this, and could give me a simple basci script to start with i would appreciate it. If it isnt possible, thank you for your time, and i will look elsewhere.


03-22-2005, 10:52 AM
i never seen this to be done satisfactorily. it's actually already been asked on the forum before, so if you search it should come up.