php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35254 please see description
Submitted: 2005-11-17 07:35 UTC Modified: 2005-11-17 08:25 UTC
From: admin at saribyte dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4CVS-2005-11-17 (CVS) OS: Linux
Private report: No CVE-ID: None
 [2005-11-17 07:35 UTC] admin at saribyte dot com
Description:
------------
when I check my checkboxes at www.webmotoren.de/advanced.php the al of them get set except one of them: "Automatik"
This is happening for no reason


Reproduce code:
---------------
HTML
*************************************************
	<tr> 
      <td align=right>Automatik:</td>
     	  <td> <INPUT value="1" type="CHECKBOX" name="Automatik"></td>
    </tr>	<tr> 
      <td align=right>metallic:</td>
     	  <td> <INPUT value="1" type="CHECKBOX" name="metallic"></td>
    </tr>
***********************************************************
php
***********************************************************
	if(!empty($_POST[Automatik]))
	{
		$isautomatik = 1;
	}

	if(!empty($_POST[metallic]))
	{
		$ismetallic = 1;
	}
***********************************************************
Output
***********************************************************
if($isautomatik)
{
$query[] = "(re2_listings.Automatik= '$isautomatik')";
}
if($ismetallic)
{
	$query[] = "(re2_listings.metallic= '1')";
}
***********************************************************







Expected result:
----------------
When Automatik is checked, the (re2_listings.Automatik='1') should be printed as well!

Actual result:
--------------
all of the checked boxes get set except Automatik
Please check www.webmotoren.de/advanced.php and check the boxes to test

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-17 08:25 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 10:01:32 2024 UTC