I've generally created a cgi script per page. Is that a mistake?
(I embed the perl in my html so I can edit pages with an html editor)
I need a better technique for invoking traversals to other pages.
Right now all I can do is a redirect (internal or external).
How do you organize things so that from within a script you can either
display the associated page or invoke any other page/script instead?
- just do redirects?
- put all page generation in subroutines in one big .pm?
- something else (I hope)?
Example: My main "home" page has links to "login" and "register"
scripts/pages, both of which eventually lead to a "user" page.
With no parameters the login script displays an empty login form.
Called with get/post parameters it processes the form data;
on failure it redisplays the login form with a warning,
on success it should take you to the "user" page (my problem).
How would YOU organize this?
There are lots of tutorials on the net, but I haven't seen anything
about organization between multiple pages.
(sorry, this is a clarified repost)