<div id="player-onforce1"> <div class="player-message"><?php echo $game->message;?></div> <div>Perform the following task</div> <div><?php echo $game->deck1Card['title'];?></div> <div><?php echo $game->deck1Card['text'];?></div> <?php if( empty($game->deck1Card['action']) ){ ?> <form method="post"> <div class="form-submit"> <input type="hidden" name="a" value="nextplayer"> <input type="submit" name="submit" value="Okay"> </div> </form> <?php }else{ ?> <form method="post"> <div class="form-submit"> <input type="hidden" name="a" value="<?php echo $game->deck1Card['action'];?>"> <input type="hidden" name="v" value="<?php echo $game->deck1Card['value'];?>"> <input type="submit" name="submit" value="Okay"> </div> </form> <?php } ?> <div>or punk out and</div> <form method="post"> <div class="form-submit"> <input type="hidden" name="a" value="playerquit"> <input type="submit" name="submit" value="Quit"> </div> </form> </div>
info at phpclasses dot org