Re: HTTP_POST??

From: Date: Thu, 18 Jan 2001 15:54:43 +0000
Subject: Re: HTTP_POST??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-35369@lists.php.net to get a copy of this message
Try this, I know Ive botched your origonal code... somepage.php <? while(...) { ... echo "<td><input type='checkbox' name='account_num[$SkyAccNo]' value='$SkyAccNo'></td>\n"; } ?> someotherpage.php <? function checked($val_1, $val_2) { if ($val_1 == $val_2) return " checked "; } foreach($account_num as $pos => $val) { echo "<td><input type='checkbox' name='account_num[$SkyAccNo]' value='$SkyAccNo' " . checked(@$account_num[$pos], $SkyAccNo) . " ></td>\n"; } while(...) { ... echo "<td><input type='checkbox' name='account_num[$SkyAccNo]' value='$SkyAccNo' " . checked(@$account_num[$SkyAccNo], $SkyAccNo) . " ></td>\n"; } ?> email me if you have more questions. Chris Lee Mediawaveonline.com ""Wade Halsey"" <whalsey@btech.co.za> wrote in message news:025401c0811c$214dfb40$256410ac@WADEH... Hi I have a while loop which populates rows in a table, in each row is a checkbox which has a unique name: <td><input type="checkbox" name="<?php print $SkyAccNo;?>" value="ON"></td> On another page I want to output all the details in a specific table row, how do I check which checkbox has been checked so that specific row can be displayed? Thanks for any help Wade

« previous php.general (#35369) next »