K kpa4941 New member Oct 15, 2009 #1 I am trying to execute some php code if a user closes a window. How can I do this? Thanks!