Submit Split...

From: Date: Wed, 19 Jun 2002 07:35:00 +0000
Subject: Submit Split...
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-85356@lists.php.net to get a copy of this message
Hi there, I am relatively new to PHP and am having some difficulty in a current project. I need to have a form submit to one group of people, if their radio button is marked, or to another group, if theirs is marked. I've tried the following with no luck, could you suggest how I might get this to work, or is there a better way to do it? From the form, where the radio buttons are named: Array[Approval] with values YES and NO I then post them to a handler containing the following php: <?PHP if ($Array[Approval] = "YES") { print ("Hello"); }elseif ($Array[Approval] = "NO") { print ("Goodbye"); } ?> The result I get no matter which button is selected is Hello. I'd really appreciate any help. Thanks, Shaun.

« previous php.dev (#85356) next »