#21851 [Opn]: bizarre!: status replaced with foo1 or nothing
| From: | keith at lucidts dot com | Date: | Fri, 24 Jan 2003 09:19:33 +0000 |
| Subject: | #21851 [Opn]: bizarre!: status replaced with foo1 or nothing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31125@lists.php.net to get a copy of this message | ||
ID: 21851
User updated 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:
update ...
ok this may not be a php problem afterall ... although i can reproduce
it on every windows machine i've tried but on every lynx and conquerer
it comes out as expected ... the mystery continues ....
additional note ... i've tried with both netscape and ie on xp and 98
problem persists from 4 different computers (2 at the office 2 at home)
Previous Comments:
------------------------------------------------------------------------
[2003-01-24 03:06:41] derick@php.net
Looks fine here:
<select name='status' size="1">
Derick
------------------------------------------------------------------------
[2003-01-23 19:24:13] keith@lucidts.com
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.
------------------------------------------------------------------------
[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