Re: [PHP] Script FLOW-- branching and subroutines/functions

2001-04-09 Thread Chris Worth
Thanks, Michael You've reinforced how I've come learn that php does things. When I first tried the script it simply printed the first form over and over. it was kind of funny in a way. I'll restructure my program now to account for how PHP does things. thanks again, chris On Mon, 9 Ap

Re: [PHP] Script FLOW-- branching and subroutines/functions

2001-04-09 Thread Michael Hall
Lets try that again: > > if ($submit) { > if (data already in db) { reject data; } else { > commit data to db; > } > } > else { > display form with submit button named 'submit'; > } > > ?> > > A bit of a mud map ... hope it he

Re: [PHP] Script FLOW-- branching and subroutines/functions

2001-04-09 Thread Michael Hall
Here's what I'd do (pseudocode): 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe