Ik probeer dit jaar een overzicht bij te houden van het aantal gescoorde goals van mijn elftal.
Ik ben (met zoeken op het forum hier en een aantal lesjes) zo ver als dit gekomen:
scores.php:
<?PHP
$score_marco = "2 Goals";
$score_nils = "4 Goals";
$score_andre = "0 Goals";
$score_cor = "0 Goals";
$score_matthieu = "1 Goals";
$score_adri = "2 Goals";
$score_hans = "1 Goals";
$score_johan = "0 Goals";
$score_nico = "5 Goals";
$score_michel = "0 Goals";
$score_rene = "2 Goals";
$score_robert = "0 Goals";
$score_peter = "3 Goals";
$score_berend = "0 Goals";
?>
En dit, index.php:
<?PHP
include('scores.php');
?>
<html>
<head>
<meta http-equiv="Content-Language" content="es">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Scores 5de SCK</title>
<style>
<!--
.tekst { font-family: Arial; font-size: 10pt }
-->
</style>
</head>
<body>
<p>Marco: <?php echo "$score_marco"; ?></p>
<p>Nils: <?php echo "$score_nils"; ?></p>
<p>Andre: <?php echo "$score_andre"; ?></p>
<p>Cor: <?php echo "$score_cor"; ?></p>
<p>Matthieu: <?php echo "$score_matthieu"; ?></p>
<p>Adri: <?php echo "$score_adri"; ?></p>
<p>Hans: <?php echo "$score_hans"; ?></p>
<p>Johan: <?php echo "$score_johan"; ?></p>
<p>Nico: <?php echo "$score_nico"; ?></p>
<p>Michel: <?php echo "$score_michel"; ?></p>
<p>Rene: <?php echo "$score_rene"; ?></p>
<p>Robert: <?php echo "$score_robert"; ?></p>
<p>Peter: <?php echo "$score_peter"; ?></p>
<p>Berend: <?php echo "$score_berend"; ?></p>
</body>
</html>
Mijn vraag is, is het mogelijk om de waardes in scores.php in een formulier te plaatsen zodat als bijv. Michel een keer scoort (dat zal me wat wezen maar OK :) dat het dan in een formulierveld wordt aangepast ipv in de php code?
Alvast bedankt voor jullie hulp,
Groet, Hans