[thelist] Web site add on software

Anne Thorniley anne at beerintheevening.com
Thu Jan 10 10:38:09 CST 2002


On Thu, Jan 10, 2002 at 04:22:34PM -0000, R.Livsey wrote:
> When you want a PHP page to submit a form to itself, instead of using
> the file name in the action field, use $PHP_SELF.
> This means that if you change the filename in the future, everything
> still works without having to touch a line of code!

That reminds me - is it absolutely necessary to specify action in a form 
tag? Everything I've found on the subject says that without an action 
specified, the action defaults to the current document/script/whatever. 
But everything also seems to say it's a required attribute. Is it safe
to miss it out completely, or is the default action just something that
most browsers support but not actually in the standard?

Just something I've been wondering about for a while.

Anne

-- 
It's a dream
There's no need to tell me so
It's a dream
Don't you think I know?




More information about the thelist mailing list