Der jetzige php Code:
Der HTML div Container:
Ich kann ja einwandfrei die 7 Input Felder durch iterieren und die Werte auslesen. Nur möchte ich diese auch wieder reinschreiben, so dass nach dem senden, das drin steht was abgeschickt wurde. Normal hatte ich ja sowas wie .... <input name="eingabe" value="<?php echo $rewrite;"> nachdem ich im php Teil $rewrite=htmlspecialchars($_GET('eingabe')); hatte. Kann mir da jemand helfen, weil das sollen dynamisch viele div container werden.
PHP-Code:
<?php
if(isset($_GET['send'])){
echo "<pre>";
foreach($_GET['element'] as $key=>$value){
echo htmlspecialchars($value) . "\n";
}
echo "</pre>";
}
?>
Code:
<div class="input-prepend input-append"> <input name="element[]" style="width: 98px;" maxlength="12" type="text" value="" id="inputError" placeholder="Vorwahl..."> <span class="add-on" style="min-width: 0px; padding: 4px 2px;">/</span><input name="element[]" class="" type="text" maxlength="25" value="" placeholder="Rufnummer..."> <span style="margin-left: 10px; border-radius: 3px 0 0 3px;" class="add-on">Datum</span><input name="element[]" maxlength="2" style="width: 18px;" type="text" value=""> <span class="add-on" style="min-width: 0px; padding: 4px 0px;">.</span><input name="element[]" maxlength="2" style="width: 18px;" type="text" value=""> <span class="add-on" style="min-width: 0px; padding: 4px 0px;">.</span><input maxlength="2" style="width: 35px;" disabled="disabled" value="2012" type="text"> <span class="add-on" style="margin-left: 10px; border-radius: 3px 0 0 3px;">Uhrzeit</span><input name="element[]" maxlength="2" style="width: 18px;" type="text" value=""> <span class="add-on" style="min-width: 0px; padding: 4px 0px;">:</span><input name="element[]" maxlength="2" style="width: 18px;" type="text" value=""> <input name="element[]" style="margin-left: 10px;" type="text" class="input-large" maxlength="25" value="" placeholder="Anbieter (optionale Angabe)"> </div>

Kommentar