Bug #16576: Else if fails when seperated @ least
| From: | josephcohen11 at yahoo dot com | Date: | Fri, 12 Apr 2002 19:18:33 +0000 |
| Subject: | Bug #16576: Else if fails when seperated @ least | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4770@lists.php.net to get a copy of this message | ||
From: josephcohen11@yahoo.com
Operating system: Windows 2000
PHP version: 4.1.2
PHP Bug Type: Scripting Engine problem
Bug description: Else if fails when seperated @ least
if i have html and then i embed php, i cannot use else if, only if (which
REALLY SUCKS for forms.)
this isn't my code but it illustrates the issue
example:
You should see an X int the slot you selected:<br>
<?php if($HTTP_GET_VARS['Slot']==1) echo 'X';?>:<?php else
if($HTTP_GET_VARS['Slot']==2) echo 'X';?>:
etc.
Adding curlies to the ifs and parentheses to the echo don't help.
please email me a fix if its my mistake, or fix the bug if its yours
thanks,
joe
--
Edit bug report at http://bugs.php.net/?id=16576&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16576&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16576&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16576&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16576&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16576&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16576&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16576&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16576&r=submittedtwice