Re: Submit Split

From: Date: Wed, 19 Jun 2002 13:40:54 +0000
Subject: Re: Submit Split
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-85355@lists.php.net to get a copy of this message
Hello, this is the wrong list for user questions, they should be asked on the php-general@lists.php.net mailinglist. And you might read the manual page @ http://www.php.net/manual/en/language.operators.comparison.php and http://www.php.net/manual/en/language.operators.assignment.php (tip: use == instead of =) Derick On Wed, 19 Jun 2002, Shaun Sandy wrote: > 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. > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > --------------------------------------------------------------------------- Did I help you? http://www.derickrethans.nl/link.php?url=giftlist Frequent ranting: http://www.derickrethans.nl/ --------------------------------------------------------------------------- PHP: Scripting the Web - derick@php.net All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net ---------------------------------------------------------------------------

« previous php.dev (#85355) next »