|
Form Processing Using PHP!
Description:
Create a nice looking html document that includes a survey form. The document must ask a minimum of 5 survey questions. Each survey question must be a radio button with the possibility of at least two answers. Format the survey form so it looks professional.
Process the form using a PHP program and keep accumulative statistical information of the survey results. A document containing current results of the survey should be returned to the browser on the completion of a successful vote. The survey results must display the total number of users that have currently voted and the current polled results for each question. Include a button (e.g. "view survey results") on the original survey that when clicked will display the current survey results. This button is used by anyone who just wants to see the survey results, regardless if they have voted or not.
Your program must do session handling so the user can only vote once. If a user tries to vote twice, display a message indicating that the user has already voted. Once the session handling is done and working. Then add a cookie so that the user can't stop his browser, restart and then vote again.
Grading: This program is worth 100 pts. You will be graded on the visual quality of both the input form and the survey results, so make them look nice. 75pts. - fulfills assignment requirements. 25pts. - style/elegance/visual appearance
:Place your HTML file in a file named assign2.html and your PHP program in a file named assign2.php. Both should be placed in your public_html directory. Test your PHP script by accessing your assign2.html file located in your public_html directory as follows: Note: DO NOT include the standard first line of a xhtml document <?xml version = "1.0 encoding = "utf-8"?> in your php program. Our php processor gets a parse error when trying to parse your php. Warning: Once this assignment is complete be sure to activate the assignment #2 link in your home page. |
|
|
|
|