If + Multiple forms help

From: Date: Fri, 19 Jul 2002 15:31:04 +0000
Subject: If + Multiple forms help
Groups: php.general 
Request: Send a blank email to php-general+get-108532@lists.php.net to get a copy of this message
Hi, Im currently having a problem when I have multiple forms on the same page (I assume that this is the problem). im currently doing something like this: <? if(!$include) { if(!$submit) { ?> //html <? } if($submit) { do some code } } if(($include) && ($include == "send")) { if(!$submit_send) { ?> //html goes here <? } if($submit_send) { code goes here } } Okay now this is what happens, the first form works fine even if there is an include. The second one ($submit_send) does not, it just reloads the page without actually doing any code.. it seems to stop right before the if($submit_send). I was wondering if it could be because I had multiple forms in the script (but im only accessing one at the time). Im really stuck at the moment, to me, it should work, but its not. I don't get any errors, it just seems to skip right over the code section for $submit_send . Thanks for any help.

« previous php.general (#108532) next »