RE: [PHP-DEV] Submit Split...
| From: | James Cox | Date: | Wed, 19 Jun 2002 14:07:05 +0000 |
| Subject: | RE: [PHP-DEV] Submit Split... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85357@lists.php.net to get a copy of this message | ||
and the reason you have ignored the answer thus far is ?
> 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 =)
> -----Original Message-----
> From: Shaun Sandy [mailto:Sandys@nu.ac.za]
> Sent: Wednesday, June 19, 2002 8:35 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
>
>