q1php
file: q1php/index.php
url: http://SERVER/~UTORID/repo_UTORID_309exam/finalExam/q1php/index.php
Complete index.php so that it implements the vote application
described below, no other technologies allowed. Write simple, concise code
(no MVC etc. needed).
Vote Application
- This PHP vote application allows a user to vote on a question.
- The user can vote as much as they want. Each vote increments either 'yesVotes' or 'noVotes'
as stored in the users session.
- There is no sense in which votes are shared between users in this case. That is,
at this point, the application just records the number of times the 'yes' or 'no'
button is clicked by this user.
- So it is not really tracking votes. That is, you can not see other users 'votes'
- The screenshots below should make the operation of the application clear.
You should match the behaviour exactly.