CreativPur
Erfahrenes Mitglied
PHP:
<?php
$parameter = $_GET["parameter"];
$statement = $pdo->prepare("SELECT * FROM bw WHERE bw_code = :bw_code");
$statement->execute(array(':bw_code' => $parameter));
while($row = $statement->fetch()) {
echo '<form action="#" method="post">
<div class="col-lg-6 col-xs-12">
<div class="form-group">
<label for="fa_vorname">Vorname:</label>
<input type="text" class="form-control" id="fa_vorname" name="fa_vorname" value="'.$row["fa_vorname"].'">
</div>
</div>
<div class="col-lg-6 col-xs-12">
<div class="form-group">
<label for="fa_nachname">Nachname:</label>
<input type="text" class="form-control" id="fa_nachname" name="fa_nachname" value="'.$row["fa_nachname"].'">
</div>
</div>
</div>
<input type="hidden" class="form-control" id="bw_code" name="bw_code" value="'.$row["bw_code"].'">
<button type="submit" class="btn btn-success btn-sm">Bewerbung ändern</button>'
?>
<?php
}
?>