Question: Can you please solve this with codes as soon as possible Develop a simple website to advertise a range of rooms of the hotel. Your

Can you please solve this with codes as soon as possible

Develop a simple website to advertise a range of rooms of the hotel. Your website should have the basic structure of a professional hotel website, such as be a header menu, a main section of advertisement, and a footer (e.g., https://www.primushotelsydney.com/accommodation). The specific requirements of your main section of advertisement are listed as below: You need to advertise six types of rooms for this hotel: standard twin, executive twin, superior suite, deluxe suite, executive suite, and presidential suite; In the advertisement of each type of room, you need to list room information including bed type, room size, room facilities, price per night and other information you view valuable; You need to place two buttons besides each of your advertisement. o One button should be named as check availability. Upon clicking on it, customers should be able to view the availability of the room in April 2021. Assume this hotel has 2 rooms of each type. You need to use PHP and MySQL to support this functionality. o Another button should be named as book now. Upon clicking on it, customers will be directed to a new webpage to make an online booking

Task 2: The booking webpage asks customers to fill in a booking form that collect a series of customer information including customer name, email address, phone number, check-in date (suppose all customers only book night), room type and number of check-in persons. Before you submit the data to the server, you need to use JavaScript to check the validity of the input information. The specific requirements are listed as below: A valid consumer name should have both first name and last name, and they should be separated by a space (e.g., Ray Xie); A valid email address should have the @ character; A valid phone number should contain 10 digits and should start with 04; Check-in date should be collected with a calendar date format; Number of check-in persons should be less than or equal to the maximum number that a type of room can accommodate. o Standard twin room and executive twin room can accommodate at most 2 persons; o Superior suite room, deluxe suite room, and executive suite room can accommodate at most 3 persons; o Presidential suite can accommodate at most 5 persons; If any data is invalid, you need to prevent the data from being sent to the server and ask customers to re-enter the data. Please note that you MUST use JavaScript to check the validity of form input. After the validity check, the form input will be sent to the server. You need to use PHP to connect to a pre-created database named SOF_A1, and check whether there is a capacity for the nominated room for the check-in date. If there is still capacity, you need to store the registration information in the database. Then, display The below booking has been successful! and display the booking details following.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!