P is for Practical | |
PerlMonks |
Re: Form Actionby Joost (Canon) |
on Jun 30, 2006 at 23:28 UTC ( [id://558701]=note: print w/replies, xml ) | Need Help?? |
As I sort of mentioned before, you seem to be having trouble understanding program execution flow. I think you're forgetting something fairly basic:
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 Section
Seekers of Perl Wisdom
|
|