RADIOBUTTONS
Code (php)
Maar op de pagina wordt niets gechecked (ja/nee)
De database werkt wel ik heb het getest met een simpele input type=text.
Gewijzigd op 01/01/1970 01:00:00 door Slaz
Parse error: syntax error, unexpected T_STRING in C:\Program Files\VertrigoServ\www\edit_entry.php on line 54
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
print '<form action="edit_entry.php" method="post">
<p>Reserveringsnummer: <input type="text" name="reserveringsnr" size="40" maxsize="100" value="' . $row['reserveringsnr'] . '" /></p>
<p>Aantal: <input type="text" name="aantal" size="40" maxsize="100" value="' . $row['aantal'] . '" /></p>
<p>Naam: <input type="text" name="naam" size="40" maxsize="100" value="' . $row['naam'] . '" /></p>
<p>E-mail: <input type="text" name="email" size="40" maxsize="100" value="' . $row['email'] . '" /></p>
<p>Telefoonnr.: <input type="text" name="tel" size="40" maxsize="100" value="' . $row['tel'] . '" /></p>
<p>Studentnr: <input type="text" name="studentnr" size="40" maxsize="100" value="' . $row['studentnr'] . '" /></p>
<p>Betaald: <input type="text" name="studentnr" size="40" maxsize="100" value="' . $row['betaling'] . '" /></p>
<p>
Betaald: Ja <input type="radio" name="betaling" value="Ja" <?php echo $row['betaling'] == 'Ja' ? 'checked="checked"' : ''; ?> />
Nee <input type="radio" name="betaling" value="Nee" <?php echo $row['betaling'] == 'Nee' ? 'checked="checked"' : ''; ?> />
</p>
<input type="hidden" name="id" value="' . $_GET['id'] . '" />
<input type="submit" name="submit" value="Update reservering" />
</form>
<p><a href=reserveringen.php>Ga terug</a>
';
<p>Reserveringsnummer: <input type="text" name="reserveringsnr" size="40" maxsize="100" value="' . $row['reserveringsnr'] . '" /></p>
<p>Aantal: <input type="text" name="aantal" size="40" maxsize="100" value="' . $row['aantal'] . '" /></p>
<p>Naam: <input type="text" name="naam" size="40" maxsize="100" value="' . $row['naam'] . '" /></p>
<p>E-mail: <input type="text" name="email" size="40" maxsize="100" value="' . $row['email'] . '" /></p>
<p>Telefoonnr.: <input type="text" name="tel" size="40" maxsize="100" value="' . $row['tel'] . '" /></p>
<p>Studentnr: <input type="text" name="studentnr" size="40" maxsize="100" value="' . $row['studentnr'] . '" /></p>
<p>Betaald: <input type="text" name="studentnr" size="40" maxsize="100" value="' . $row['betaling'] . '" /></p>
<p>
Betaald: Ja <input type="radio" name="betaling" value="Ja" <?php echo $row['betaling'] == 'Ja' ? 'checked="checked"' : ''; ?> />
Nee <input type="radio" name="betaling" value="Nee" <?php echo $row['betaling'] == 'Nee' ? 'checked="checked"' : ''; ?> />
</p>
<input type="hidden" name="id" value="' . $_GET['id'] . '" />
<input type="submit" name="submit" value="Update reservering" />
</form>
<p><a href=reserveringen.php>Ga terug</a>
';
Gewijzigd op 01/01/1970 01:00:00 door Slaz
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
print'<form action="edit_entry.php" method="post">
<p>Reserveringsnummer: <input type="text" name="reserveringsnr" size="40" maxsize="100" value="'.$row['reserveringsnr'].'" /></p>
<p>Aantal: <input type="text" name="aantal" size="40" maxsize="100" value="'.$row['aantal'].'" /></p>
<p>Naam: <input type="text" name="naam" size="40" maxsize="100" value="'.$row['naam'].'" /></p>
<p>E-mail: <input type="text" name="email" size="40" maxsize="100" value="'.$row['email'].'" /></p>
<p>Telefoonnr.: <input type="text" name="tel" size="40" maxsize="100" value="'.$row['tel'].'" /></p>
<p>Studentnr: <input type="text" name="studentnr" size="40" maxsize="100" value="'.$row['studentnr'].'" /></p>
<p>Betaald: <input type="text" name="studentnr" size="40" maxsize="100" value="'.$row['betaling'].'" /></p>
<p>
Betaald: Ja <input type="radio" name="betaling" value="Ja"' . ($row['betaling']=='Ja'?'checked="checked"':'') . ' />
Nee <input type="radio" name="betaling" value="Nee"' . ($row['betaling']=='Nee'?'checked="checked"':'') . '/>
</p>
<input type="hidden" name="id" value="'.$_GET['id'].'" />
<input type="submit" name="submit" value="Update reservering" />
</form>
<p><a href=reserveringen.php>Ga terug</a>
';
?>
print'<form action="edit_entry.php" method="post">
<p>Reserveringsnummer: <input type="text" name="reserveringsnr" size="40" maxsize="100" value="'.$row['reserveringsnr'].'" /></p>
<p>Aantal: <input type="text" name="aantal" size="40" maxsize="100" value="'.$row['aantal'].'" /></p>
<p>Naam: <input type="text" name="naam" size="40" maxsize="100" value="'.$row['naam'].'" /></p>
<p>E-mail: <input type="text" name="email" size="40" maxsize="100" value="'.$row['email'].'" /></p>
<p>Telefoonnr.: <input type="text" name="tel" size="40" maxsize="100" value="'.$row['tel'].'" /></p>
<p>Studentnr: <input type="text" name="studentnr" size="40" maxsize="100" value="'.$row['studentnr'].'" /></p>
<p>Betaald: <input type="text" name="studentnr" size="40" maxsize="100" value="'.$row['betaling'].'" /></p>
<p>
Betaald: Ja <input type="radio" name="betaling" value="Ja"' . ($row['betaling']=='Ja'?'checked="checked"':'') . ' />
Nee <input type="radio" name="betaling" value="Nee"' . ($row['betaling']=='Nee'?'checked="checked"':'') . '/>
</p>
<input type="hidden" name="id" value="'.$_GET['id'].'" />
<input type="submit" name="submit" value="Update reservering" />
</form>
<p><a href=reserveringen.php>Ga terug</a>
';
?>
Gewijzigd op 01/01/1970 01:00:00 door Rens nvt
Hartelijk dank ;) Ik kan daar nog niet mee omgaan!