Mailinglisten-Archive |
Hi Michael,
wie Sebastian schon sagte, das ist alles sehr vom
Anwendungsfall abhaengig sein tun ... ;-)
Aber im Prinzip macht man das wie folgt:
<?
/* Usereingabe erfassen oder Startwerte setzen */
$ART = (isset($_POST['TP'])) ? $_POST['TP'] :
array('BA36'=>0,'QP43'=>0,'YU75'=>0,'XF33'=>0);
/* Usereingabe validieren */
foreach($ART as $type => $anzl) {
$ART[$type] = intval($anzl);
}
?><form action="<?= $_SERVER['PHP_SELF']; ?>" method="post"><?
foreach($ART as $type => $anzl) {
?>Typ <?= $type; ?>: <input type="text" name="TP[<?= $type;
?>]" size="2" value="<?= $anzl; ?>"><br /><?= "\n";
}
?><input type="submit" value=" absenden "></form>
<?
kann man je nach belieben bis zur Unkenntlichkeit "aufbohren".
m. b. G. Norbert
_____________________
normal: 02686-987103
Notruf: 0163-3613642
---------------------
e.o.m.
php::bar PHP Wiki - Listenarchive