|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-17 08:25 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 21:00:01 2026 UTC |
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