Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="chess_moves.php" method="get">
- <div>
- <label for="txt-piece">Piece</label><br />
- <input type="text" id="txt-piece" name="txtPiece" value="<?php if($piece_type) { echo "$piece_type"; } ?>" />
- <p><em><span>p</span>awn, <span>b</span>ishop, <span>r</span>ook, k<span>n</span>ight, <span>q</span>ueen, <span>k</span>ing</em></p>
- <p id="msg-piece"><strong class="<?php echo $validation_piece; ?>"><?php echo "$msg_piece"; ?><br /></strong></p>
- </div>
- <div>
- <label for="txt-square">Square</label><br />
- <input type="text" id="txt-square" name="txtSquare" value="<?php if($piece_square) { echo "$piece_square"; } ?>"/>
- <p><em>letter(a-h)number(1-8)</em></p>
- <p id="msg-square"><strong class="<?php echo $validation_square; ?>"><?php echo "$msg_square"; ?><br /></strong></p>
- </div>
- <div>
- <label>Colour</label>
- <p id="radio-buttons">
- <input type="radio" id="rad-color-black" name="radColor[]" value="black" <?php if($piece_color == "black") { echo "checked"; } ?> />Black
- <input type="radio" id="rad-color-white" name="radColor[]" value="white" <?php if($piece_color == "white") { echo "checked"; } ?> />White</p>
- <p id="msg-color"><strong class="<?php echo $validation_color; ?>"><?php echo "$msg_color"; ?><br /></strong></p>
- </div>
- <div id="submit"><br /><input type="submit" value="Submit" id="btn-submit" /></div>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement