I guess I should preface this by saying I am using the methodology of creating static HTML pages and sprinkling in PHP code as necessary. I know this may be considered Bad Practice, but I like using Dreamweaver templates and laying out my screens in a WYSIWYG editor.
So, using this methodogy, how does one load a specific page based on the results of a form?
Take, for example, a customer login screen. When the form is submitted, one of several pages might be presented to the user: an entry form if this is a new user, the desired page if the login is successful, the login form again (with an error message) if the e-mail can't be found or the password is bad, or an acknowledgement page if the customer requests the password be e-mailed to them.
In the script called when the form is submitted, I've been using a JavaScript window.location call to the right page, depending on what the customer selected, valid data, etc. It occurs to me that this is probably not the best solution (e.g. the user can turn JavaScript off), but what is?
Any feedback on my this subject would be appreciated.
--Bruce