소스 검색

verwerking shot win/loose

DB
Ruben De Baets 2 년 전
부모
커밋
3236c1d71f
2개의 변경된 파일10개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    1
      index.php
  2. 9
    2
      shot.php

+ 1
- 1
index.php 파일 보기

@@ -9,7 +9,7 @@
<h1 id="shot">Zeeslag</h1>
<?php

$canal = 30;
$canal = 5;
$sub = rand(0, $canal - 1);
$ammo = $canal / 5;
echo "Sub position: " . $sub;

+ 9
- 2
shot.php 파일 보기

@@ -5,8 +5,15 @@
<h2>POST</h2>
Uw schot was:
<?php
echo $_POST['shot'] + 1;
var_dump($_POST);
$canal = 5;
$sub = rand(0, $canal - 1);
$ammo = $canal / 5;
$shot = $_POST['shot'];
if ($shot == $sub) {
echo 'Gewonnen';
} else {
echo "Gemist";
}
?>
</body>


Loading…
취소
저장