I understand your pain. When I started using CGI::Application, I thought the whole thing was a big messy sham.
Today, coding a webapp without it seems idotic to me- personally.
Initially I was under the misunderstanding that the module was smarter then it really was. That somehow it magically kept track of what the next runmode was.
As for myself, all my runmodes do one of two things when they end, they either
As for the form..
Check that your form is sending the next runmode as argument.
This form is telling that the next runmode is 'doit'
<form method="POST"> <input type="text" name="last_name" value=""> <input type="hidden" name="rm" value="doit"> <input type="submit" value="submit"> </form>
With the following, I've had problems in different browser clients:
<form action="?rm=doit"> <input type="text" name="last_name" value=""> <input type="submit" value="submit"> </form>
This example does not tell the web app what the next runmode is
<form> <input type="text" name="last_name" value=""> <input type="submit" value="submit"> </form>
In reply to Re: CGI Interaction Magic
by leocharre
in thread CGI Interaction Magic
by martinjs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |