Question: Html, PHP write proper HTML (sematic, accessible and valid) where necessary to complete the tasks, and are still expected to use CSS to present your
Html, PHP
-
write proper HTML (sematic, accessible and valid) where necessary to complete the tasks, and are still expected to use CSS to present your solution in a way that looks polished and improves readability/usability..
-
All forms should protect against cross-site scripting and sql injection when collecting using user data.


Question #2 Write a sticky, self-processing PHP page that implements a game of paper, scissors, rock, where the user can play until they lose 10 times, and their number of wins can be added to an arcade game style "high scores" table. If you're a Big Bang Theory fan, feel free to modify the subject accordingly if you want The Game Page The game page should show the current game number, the users number of wins and losses so far, a place for a feedback message, a button/link allowing them to start again, and the form that allows for game interaction (either separate paper, scissors, rock buttons to indicate their choice, or radio buttons and a submit/play button) You'll need to distinguish between the page being loaded from a url (which is always a GET), and the page being loaded because of form submit (which should be POST), so that you know when to initalize your game/wind/loss variables to o Each time a choice is submitted, the program should randomly choose paper/scissors/rock, and determine if the user has won or lost. It should update the appropriate sessions variables for wins/losses/game number, and output a message with the game number, the computers choice, the users choice, and an indicator if this means the user won or lost. If the user has lost 10-times they should be directed to the Game Over page. The Game Over Page This page should indicate to the user that their game is over. It should give them an option to enter the name to save their score to the high scores table. This should also be a self-processing form, and on submission, should write the users name and score to the database (in a table you've created for this assignment). It should then redirect the user to the High Scores page. The High Scores Page The high scores page should display the top 20 scores (and names) in the database, nicely formatted in descending order. It should also provide a link where the user can play again. Keep in mind that the highscores table is arcade style, so a user could hold all the spots on the table. General Question 2 Info General Question 2 Info The "Play Again" and "High Scores" options can be part of a site navigation rather then part of the individual pages to make them accessible from every where You should capitalize on the concept covered in lab (and the php_intro notes), where we separated the overall design (header, footer, nav) into include files to be able to include it on multiple pages without repetition. Question #2 Write a sticky, self-processing PHP page that implements a game of paper, scissors, rock, where the user can play until they lose 10 times, and their number of wins can be added to an arcade game style "high scores" table. If you're a Big Bang Theory fan, feel free to modify the subject accordingly if you want The Game Page The game page should show the current game number, the users number of wins and losses so far, a place for a feedback message, a button/link allowing them to start again, and the form that allows for game interaction (either separate paper, scissors, rock buttons to indicate their choice, or radio buttons and a submit/play button) You'll need to distinguish between the page being loaded from a url (which is always a GET), and the page being loaded because of form submit (which should be POST), so that you know when to initalize your game/wind/loss variables to o Each time a choice is submitted, the program should randomly choose paper/scissors/rock, and determine if the user has won or lost. It should update the appropriate sessions variables for wins/losses/game number, and output a message with the game number, the computers choice, the users choice, and an indicator if this means the user won or lost. If the user has lost 10-times they should be directed to the Game Over page. The Game Over Page This page should indicate to the user that their game is over. It should give them an option to enter the name to save their score to the high scores table. This should also be a self-processing form, and on submission, should write the users name and score to the database (in a table you've created for this assignment). It should then redirect the user to the High Scores page. The High Scores Page The high scores page should display the top 20 scores (and names) in the database, nicely formatted in descending order. It should also provide a link where the user can play again. Keep in mind that the highscores table is arcade style, so a user could hold all the spots on the table. General Question 2 Info General Question 2 Info The "Play Again" and "High Scores" options can be part of a site navigation rather then part of the individual pages to make them accessible from every where You should capitalize on the concept covered in lab (and the php_intro notes), where we separated the overall design (header, footer, nav) into include files to be able to include it on multiple pages without repetition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
