Kan iemand nu eens probeeren?
steen papier schaar script
helaas je hebt verloren
jou actie was: Remi
computer actie is: Schaar
opnieuw
Werkt nog niet
jou actie was: Remi
computer actie is: Schaar
opnieuw
Werkt nog niet
probeer nu eens?
Quote:
helaas je hebt verloren Je hebt zitten knoeien met de broncode! Foei!!
jou actie was: Aap
computer actie is: Schaar
Het werkt dus gedeeltelijk.
Wat je moet doen is dit:
helaas je hebt verloren Je hebt zitten knoeien met de broncode! Foei!!
jou actie was: Aap
computer actie is: Schaar
Het werkt dus gedeeltelijk.
Wat je moet doen is dit:
[COLOR= #0000BB]<?php
$array[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]steen[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]papier[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]schaar[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/in_array"]in_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]rps[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$array[/COLOR][COLOR= #007700]))
{[/COLOR]
[COLOR= #FF8000]//Je code waar word bepaald of je hebt gewonnen of niet[/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]Je hebt zitten knoeien met de broncode! Foei!![/COLOR][COLOR= #007700];
}[/COLOR]
?> ik zal ff kijke