document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <form action="chess_moves.php" method="get">
  2.     <div>
  3.         <label for="txt-piece">Piece</label><br />
  4.         <input type="text" id="txt-piece" name="txtPiece" value="<?php if($piece_type) { echo "$piece_type"; } ?>" />
  5.         <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>
  6.         <p id="msg-piece"><strong class="<?php echo $validation_piece; ?>"><?php echo "$msg_piece"; ?><br /></strong></p>      
  7.     </div>
  8.    
  9.     <div>
  10.         <label for="txt-square">Square</label><br />
  11.         <input type="text" id="txt-square" name="txtSquare" value="<?php if($piece_square) { echo "$piece_square"; } ?>"/>
  12.         <p><em>letter(a-h)number(1-8)</em></p> 
  13.         <p id="msg-square"><strong class="<?php echo $validation_square; ?>"><?php echo "$msg_square"; ?><br /></strong></p>           
  14.     </div>
  15.    
  16.     <div>
  17.         <label>Colour</label>
  18.         <p id="radio-buttons">
  19.         <input type="radio" id="rad-color-black" name="radColor[]" value="black" <?php if($piece_color == "black") { echo "checked"; } ?> />Black
  20.         <input type="radio" id="rad-color-white" name="radColor[]" value="white" <?php if($piece_color == "white") { echo "checked"; } ?> />White</p>
  21.         <p id="msg-color"><strong class="<?php echo $validation_color; ?>"><?php echo "$msg_color"; ?><br /></strong></p>
  22.     </div>
  23.    
  24.     <div id="submit"><br /><input type="submit" value="Submit" id="btn-submit" /></div>
  25. </form>
');