Enkele dingen die onmogelijk zijn :
- MySQL
- Coockies
<?php
if(isset($_POST['submit']) && isset($_POST['check']))
{
$pad = 'geblaat.txt';
@chmod($pad, 0777);
$bestand = fopen($pad, 'a+');
$tekst = 'Waarde: '.implode(", ", $_POST['check'])."\n";
fwrite($bestand, $tekst);
fclose($bestand);
echo 'Verzonden!';
}
else
{
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<input type="checkbox" name="check[]" value="1" />
<input type="checkbox" name="check[]" value="2" />
<input type="checkbox" name="check[]" value="3" />
<input type="checkbox" name="check[]" value="4" />
<input type="checkbox" name="check[]" value="5" />
<input type="checkbox" name="check[]" value="6" />
<input type="submit" name="submit" value="Verzenden" />
</form>
<?php
}
?>