Hallo,
Ik ben bezig met een bingo systeem, ik heb het random getal kiezen al (
), maar ik wil nu ook dat hij opslaagt welke getallen al gehad zijn.
Dus dat er staat: Deze getallen heb je al gehad... [GETALLEN]
Dit is mijn voorlopige code:
Hoe doe ik dit? Bedankt
//Ik bedoel niet dat hij geen getallen meer kiest die al gehad zijn, dat weet ik hoe ik he tmoet maken als jullie me uitleggen hoe ik dat opslaag...
Bedankt
Ik ben bezig met een bingo systeem, ik heb het random getal kiezen al (
), maar ik wil nu ook dat hij opslaagt welke getallen al gehad zijn.Dus dat er staat: Deze getallen heb je al gehad... [GETALLEN]
Dit is mijn voorlopige code:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700])
{[/COLOR]
[COLOR= #0000BB]$random[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]99[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000] Het getal is [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$random[/COLOR][COLOR= #007700];[/COLOR]
?>
<form method="post" action="#">
<input type="submit" value="BINGO">
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
?>
<form method="post" action="#">
<input type="submit" value="BINGO">
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?> Hoe doe ik dit? Bedankt
//Ik bedoel niet dat hij geen getallen meer kiest die al gehad zijn, dat weet ik hoe ik he tmoet maken als jullie me uitleggen hoe ik dat opslaag...
Bedankt

