-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfish.php
More file actions
37 lines (33 loc) · 776 Bytes
/
fish.php
File metadata and controls
37 lines (33 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
include "classes.php";
session_start();
include "commonUI.php";
startHTML("fish");
$bait = $_SESSION["playParty"]->_supplies->_bait;
$back = $_GET["sourcePage"];
if($bait <= 0)
{
?>
<p>You don't have any Bait<br>
<a href = "<?php echo $back;?>"><button>OK</button></a>
</p>
<?php
}
else
{
?>
<p>Set the amount of Bait to Fish for Food.<br>
More Bait will yeild more lbs of food<br><br>
Bait: <?php echo $bait;?>
</p>
<form action="fish2.php" method="get">
<input type = "hidden" name="sourcePage" value="fish2.php">
<input type = "hidden" name="sourcePage2" value="<?php echo $back;?>" >
<input type="number" max="<?php echo $bait;?>" min="0" name="baitNum">
<input type = "submit" value="Fish">
</form>
</form>
<?php
}
endHTML();
?>