Page is a not externally linkable
jatar_k - 2:38 pm on Nov 14, 2011 (gmt 0)
to run php code from a button you would have to submit to the server again, not sure if that is what you mean.
Your php code can be anywhere in the actual script, the top is always a good place since you probably want to use the data you get inside the page somewhere.
I don't exactly understand the series of events you want to have.