1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <?php
if (isset($_POST['submit'])) {
$table=$_POST;
$result = array();
foreach ($table as $key => $i){
$output=array();
$output=explode("_", $key);
if ($output[0] == 'brule') {
$result[]=$output[1];
}
}
foreach ($result as $j) {
$br='brule_' . $j;
$brd='brdedicated_' . $j;
echo '<tr>
<td><input type="text" name=" ' . $br . '" size="20" maxlength="50" value=" ' . <?php if (isset($table['$br'])) {echo $table['$br'];} ?> . ' "></td>
<td><input type="checkbox" name="' . $brd . '" value=" ' . <?php if (isset($table['$brd'])) {echo $table['$br'];} ?> . ' "></td>
<td><input type="button" value="Delete" onclick="go()"></td>
</tr>';
}
}
?> |
Partager