Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>First Steps Into PHP</title>
- </head>
- <body>
- <?php
- for($i = 0; $i<9; $i++){
- for ($k = 0; $k<5; $k++){
- $color = "buttonface";
- $num = 0;
- if (($i ==0 || $i == 4 || $i == 8)|| ($i<4 && $k == 0) ||($i >4 && $k == 4)){
- $color = "blue";
- $num = 1;
- }?>
- <button style="background:<?=$color ?>"><?= $num ?></button>
- <?php } ?>
- <br>
- <?php }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement