#21851 [Com]: bizarre!: status replaced with foo1 or nothing
| From: | keith at lucidts dot com | Date: | Fri, 24 Jan 2003 01:24:14 +0000 |
| Subject: | #21851 [Com]: bizarre!: status replaced with foo1 or nothing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31102@lists.php.net to get a copy of this message | ||
ID: 21851
Comment by: keith@lucidts.com
Reported By: keith@lucidts.com
Status: Open
Bug Type: Scripting Engine problem
Operating System: debian linux
PHP Version: 4.3.0
New Comment:
OMG! It just did it to this post! Am I missing something or just dumb?
I wrote
<select name='s t a t u s' without the space and look what happened!
Same thing for the first foo1. That was actually a 's t a t u s' when I
submitted this bug report.
I feel so lost right now.
Previous Comments:
------------------------------------------------------------------------
[2003-01-23 19:17:09] keith@lucidts.com
The word "status" was replace by foo1 and sometimes just spaces within
& outside of <? ?> tags!
snippets from my page
html ....
<select name=' ' size="1">
<option value="" <?= $_SESSION['status'] ? "" :
"selected"
?>>All</option>
output via view source in IE ....
<select name=' ' size="1">
<option value="" selected>All</option>
php
<?
if ($_SESSION['cat_id']) $sql .= " and cat_id =
{$_SESSION['cat_id']}";
if ($_SESSION['status']) $sql .= " and foo1 =
{$_SESSION['status']}";
echo "$sql";
?>
relevant php output ....
... and cat_id = 8 and foo1 = 'pending'
I have never seen anything like this before. It's replacing words
outside of the php, too. Furthermore, I've used status in parts of the
same page in other sql statements (albeit for different tables), and
they were not replaced. Insight would be greatly appreciated!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21851&edit=1