Gratis kop of munt script,
Hij lijkt op het script van Tom, maar is ietjes anders (beweert hij en lennard, lennard geloof ik, maar in iedergeval werkt het bijna precies het zelfde):
www.fskproductie.nl/test.php
Veel plezier
fskproductie.nl
Feedbackjes zijn welkom
© bij Luukvdo in topic: http://www.one2xs.com/threads/8601&p=1
Hij lijkt op het script van Tom, maar is ietjes anders (beweert hij en lennard, lennard geloof ik, maar in iedergeval werkt het bijna precies het zelfde):
www.fskproductie.nl/test.php
<table>
<form action="index.php?p=kop_munt" method="POST">
<tr>
<td>Kop: <input type="radio" name="invoer" value="1" /></td>
<td><img src="http://www.nolifegamer.nl/img/kop.png" /></td>
</tr>
<tr>
<td>Munt: <input type="radio" name="invoer" value="0" /></td>
<td><img src="http://www.nolifegamer.nl/img/munt.png" /></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Verzend" /></td>
</tr>
</form>
</table>
[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]$invoer[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]invoer[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$computer[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$array[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]munt[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]kop[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$invoer[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$computer[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Gefeliciteerd! Je hebt het goed geraden, het was inderdaad [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$array[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$computer[/COLOR][COLOR= #007700]];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Helaas! Je heb het niet goed geraden. Het juiste antwoord was [/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$array[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]$computer[/COLOR][COLOR= #007700]];
}
}[/COLOR]
?> Veel plezier
fskproductie.nl
Feedbackjes zijn welkom
© bij Luukvdo in topic: http://www.one2xs.com/threads/8601&p=1