Preventing repetition of a Form

"Ethan Rosenberg, PhD" <[email protected]>
Newsgroups gmane.comp.php.database
Organization Hygeia Biomedical Research, Inc.
Message-ID <[email protected]>
Dear list -

I have a program [*pseudo code*]:

        if(!isset($_REQUEST["welcome_already_seen"]))
        {
             initialize variables
        }

           $errors_array = array();
             if($_REQUEST["welcome_already_seen"]== "already_seen")
             {
             check_data();
                    if(count($errors_array) != 0)
                    {
                     show_errors();
                     show_welcome();
                 }
                 else
                 {
                     show_welcome();
                 }
             }
             if(!isset($_REQUEST["welcome_already_seen"]))
                   show_welcome();

                             switch ( $_POST['next_step'] )
                             {

                                 case "step5":
                                 {
                                     do something
                                     form
                                     next_step = step8;
                                    /form
                                 }

                                 case "step10":
                                 {
                                     do something
                                     form
                                     next_step = step5;
                                      /form
                                }

                             etc...etc
                             } //end switch

             function show_welcome()
             {
                        do something
                         form
                         next_step = step10;
                         /form
               }

The  show_welcome() persists in each step.

How do I make it go away after step10?

Thanks.

Ethan


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.