I've been struggling with a problem and don't see a solution so I'll ask all you experts.
I've been writing my form-containing scripts where I call the same script repeatedly until all of the info entered is correct. It works something like this ...
start pseudocode ---
If user is logged on then
if form is filled out then
check for errors (missing data, etc)
if ok then
write info to database
use hyperlink to move to the next page
else
allow user to correct errors
else
create form to fill out
when user selects "Continue" start over at top of page
else
give error message
use hyperlink to allow the user to log in
--- end pseudocode
I'd like to get rid of the hyperlinks and redirect or branch to a different page based upon the conditions. The revised script would look something like ...
start pseudocode ---
If user is logged on then
if form is filled out then
check for errors (missing data, etc)
if ok then
write info to database
automatically send the user to the next page
else
allow user to correct errors
else
create form to fill out
when user selects "Continue" start over at top of page
else
give error message
automatically send the user to the login page
--- end pseudocode
Suggestions, anyone? I can't imagine that this is hard to do but I've never seen the code to do it.
Jim


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks