Re: Script FLOW-- branching and subroutines/functions

From: Date: Mon, 09 Apr 2001 13:04:36 +0000
Subject: Re: Script FLOW-- branching and subroutines/functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47793@lists.php.net to get a copy of this message
Here's what I'd do (pseudocode): <?php if ($submit) { check for duplicate; if (everything OK) { commit to db; } } else { display form with submit button named 'submit'; } ?> Mick > how do I do this > > call form > wait there until it is completed > call check > look for duplicate > > then if ok > I then commit to database after entereing data

« previous php.general (#47793) next »