<?php
$aantal = $_SESSION['aantal'];
if(!isset($_POST['Submit'])) {
echo '<form id="generator" name="generator" method="post" action="">'; // velden genereren
for($teller = 0; $teller < $aantal; $teller++)
{
echo "<input type=\"text\" name=\"letter_'.$teller.'\" style=\"border:solid 1px #000000; color:#FFCC00\" onMouseDown=\"this.style.borderColor='#FF0000'\" /> <select name=\"kleur_'.$teller.'\" style=\"border:solid 1px #000000; color:#FFCC00\">
<option>kleur</option>
<option value=\"·$0\">Wit</option>
<option value=\"·$1\">Zwart</option>
<option value=\"·$2\">Donkerblauw</option>
<option value=\"·$3\">Olijfgroen</option>
<option value=\"·$4\">Rood</option>
<option value=\"·$5\">Bruinrood</option>
<option value=\"·$6\">Donkerpaars</option>
<option value=\"·$7\">Oranje</option>
<option value=\"·$8\">Geel</option>
<option value=\"·$9\">Knalgroen</option>
<option value=\"·$10\">Groenblauw</option>
<option value=\"·$11\">Knalblauw</option>
<option value=\"·$12\">Blauwpaars</option>
<option value=\"·$13\">Roze</option>
<option value=\"·$14\">Grijs</option>
<option value=\"·$15\">Lichtgrijs</option>
<option value=\"·$16\">Heel licht grijs</option>
<option value=\"·$17\">Lichtgrijs</option>
<option value=\"·$18\">Lichtoranje</option>
<option value=\"·$19\">Lichtroze</option>
<option value=\"·$20\">Roze</option>
<option value=\"·$21\">Lichtpaars</option>
<option value=\"·$22\">Oceaanblauw</option>
<option value=\"·$23\">Lichtgroen</option>
<option value=\"·$24\">Lichtgeel</option>
<option value=\"·$25\">Grijs</option>
<option value=\"·$26\">Donkergrijs</option>
<option value=\"·$27\">Oranje</option>
<option value=\"·$28\">RoodRoze</option>
<option value=\"·$29\">Knalroze</option>
<option value=\"·$30\">Lichtpaars</option>
<option value=\"·$31\">Blauwgroen</option>
<option value=\"·$32\">Lichtgroen</option>
<option value=\"·$33\">Lichtgeel</option>
<option value=\"·$34\">Grijs</option>
<option value=\"·$35\">Donkergrijs</option>
<option value=\"·$36\">Oranje</option>
<option value=\"·$37\">RoodRoze</option>
<option value=\"·$38\">Knalroze</option>
<option value=\"·$39\">Blauw</option>
<option value=\"·$40\">Blauwgroen</option>
</select><br>";
}
echo '<br><input type="submit" name="Submit" value="Submit" />'; }
else
{
$naam = 'uw naam is: ';
for($teller = 0; $teller < $aantal; $teller++)
{
$naam .= $_POST['kleur_'.$teller.''];
$naam .= $_POST['letter_'.$teller.''];
$naam .= $_POST['kleur_'.$teller.''];
}
}
?>