Ik moet voor school een website maken waarmee je kan bieden op auto's. Het volgende heb ik:
<form method='post'><strong><font size="2" face="Arial, Helvetica, sans-serif">
Naam: <input type='text' name='naam'><br>
E-mail: <input type='text' name='mail'><br>
Bod: €</font></strong> <input type='text' name='bod' value='0,00' size="10" maxlength="8"><br>
<input type='submit' name="verzend" value='Stuur'>
</form>
<?php
$naam = $_REQUEST["naam"];
$bericht = $_REQUEST["bod"];
$bestand = "bmw.txt";
$open = fopen($bestand,"a");
$datum = date("j M Y - H::i:s");
if ($_REQUEST["verzend"]){
$string =
"<table width=450 cellspacing=2>
<tr bgcolor=#cccccc>
<td width=150>$naam</td>
<td width=100>€ $bericht</td>
<td width=200>$datum</td>
</tr>
</table>";
fwrite($open,$string);
fclose($open);
}
$open = fopen($bestand,"r");
$tekst = fread($open,filesize($bestand));
fclose($open);
("<table width=450 cellspacing=2>
<tr bgcolor=#000000>
<td width=150><font color=#ffffff><strong>Naam:</font></td>
<td width=100><font color=#ffffff><strong>Bod:</font></td>
<td width=200><font color=#ffffff><strong>Datum:</font></td>
</tr>
</table>");
print("$tekst");
?>
---------------------------------------
Nou wil ik eigenlijk dat alleen maar de hoogste bieders zichtbaar zijn weet iemand hoe dit moet ?? Dit is de website --> spam
[ Voor 26% gewijzigd door whoami op 27-05-2003 21:04 ]