Using PHP
submit (a) php and html files (b) javascript, css, and resource files if any (c)
databases/tables in text files if any.
Create a food ordering site for a restaurant. The site has a food menu. The menu contains three food items and their prices. The user selects the food items using check boxes. The site also has text boxes where the user enters the name, credit card number, and delivery address. There is a submit button. When the order is submitted, a confirmation message is displayed. The message contains the selected food items, total cost, name, credit card number, and address in a table format. The restaurant retrieves the orders through a separate web page. That page has a text box and a submit button. The restaurant worker must have a password to retrieve the orders. The worker enters the password. The program checks the password. If it is valid then the orders are displayed. Otherwise an error message is displayed. The orders are displayed in a table format with one column. Each row has one order which includes the food items, total cost, name, credit card number, and address each in a separate line. Each order also has an automatically generated id at the top. There is a text box and an update button below the table of orders. When the restaurant completes an order, the worker enters the order id in the text box and updates. The completed order is immediately removed. The three food items and their prices are fixed. Store the restaurant password in the database. Use appropriate layout/css style.
This is related to the restaurant food ordering project. Add the following feature. Use cookies to remember the customers. The cookies remember the name and the address of a customer, and do not remember anything else about the customer. The cookies remember the names and the addresses for thirty days. When a customer visits the site for the first time, all text boxes and check boxes are empty. When the customer returns, the name and the address of the previous visit appear in their respective text boxes. All other features of the project remain the same. Use persistent cookies.
Create an examination site. Each user has a unique passcode to take the exam. The entrance site has a text box and a submit button. The user enters the passcode and submits. The program checks whether the passcode is valid and whether the user has not already taken the exam. If both conditions are satisfied then the exam is displayed. Otherwise an error message is displayed indicating the specific problem. The exam has a number of multiple choice questions. Each question has four answers. The exam is in a table format with one column. Each row has one question and four radio buttons answers all in separate lines. For each question, the user may choose one answer or not answer at all. None of the answers are initially checked. There is a text box and a submit button under the table of questions. The user enters the passcode in the text box and submits the answers. The program again checks whether the passcode is valid and whether the user has not already taken the exam. If both conditions are satisfied then the exam is graded and the score is displayed. Otherwise an error message is displayed indicating the specific problem. The score is the number of correctly answered questions. Once the exam is graded, the user is marked as having taken the exam. The examiner retrieves the exam results through a separate web page. That page has a text box and a submit button. The examiner must have a password to retrieve the results. The examiner enters the password. The program checks the password. If it is valid then the exam results are displayed. Otherwise an error message is displayed. The exam results are displayed in a table format with four columns. Each row has the user name, passcode, exam completed or not, and score. The score is the number of correctly answered questions. The exam questions page must be created programmatically using the
questions in the database. Similarly the exam results page must be created programmatically using the exam results in the database. Populate the database with at least five questions/answers, at least ten passcodes for ten users, and a password for the examiner. Use appropriate layout/css style.
This is related to the examination project. Add the following features. The user enters a passcode to enter the examination site. However when the user submits the exam for grading, the user does not enter the passcode again. There is no text box under the exam. There is a submit button under the exam. The starting time of the exam is displayed under the button in hour:minute:second format. The number of minutes the user is allowed to take the exam is displayed under the starting time. If there are x questions then the user is given a total of x minutes. When the user submits the exam for grading, the time is checked. If the user submits after the alloted time, a message indicating that and a zero score are displayed, and the user is marked as having taken the exam. If the user leaves the exam page without submitting, the user is assigned zero score and marked as having taken the exam. The user should not be allowed to enter the exam page if the user has already seen the exam. The user should not be allowed to submit the exam more than once. All other features of the project remain the same. Use a session and session variables.