If the page can be accessed by either a form submission or
hyperlink, set a local variable and use it in the rest of your
code.
if (isdefined("form.var"))
yourvar = form.var;
else if (isdefined("url.var"))
yourvar = url.var;
esle
yourvar = 'some default value'