RE: [PHP-DEV] Submit Split
| From: | James Cox | Date: | Wed, 19 Jun 2002 14:14:09 +0000 |
| Subject: | RE: [PHP-DEV] Submit Split | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85361@lists.php.net to get a copy of this message | ||
could someone block this person already?
> -----Original Message-----
> From: Shaun Sandy [mailto:Sandys@nu.ac.za]
> Sent: Wednesday, June 19, 2002 8:43 AM
> To: php-dev@lists.php.net
> Subject: [PHP-DEV] Submit Split
>
>
> 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
>
>