Unless you're deliberately changing the execution flow programs are executed from top to bottom.
In other words, since the only place you assign a value to $action is at the very end, that variable will be undefined everywhere else it's being used.
You'll also want to read up on how the web works. and see Ovid's CGI course.
In reply to Re: Form Action
by Joost
in thread Form Action
by Zcity
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |