ID: 21851 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: debian linux PHP Version: 4.3.0 New Comment:
Looks fine here: <select name='status' size="1"> Derick Previous Comments: ------------------------------------------------------------------------ [2003-01-23 19:24:13] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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