Question

In: Computer Science

Create a website for an online movie rental store, using HTML (and any other client technologies)...

Create a website for an online movie rental store, using HTML (and any other client technologies) and PHP. The website should include:

- A front/home page containing a list of movies available for rent (list at least 10 movies).

o Each movie should have a listed rental price.

o Additional information provided:

§ name of actors in the movie (list at least 2)

- The home page should link to a form for renting a movie

o Selecting and submitting a movie for rent will lead to a page displaying

§ the name of the movie rented,

§ the amount charged (calculated with 5% tax),

§ the date and time rented, and § the date and time the movie is due for return (in 5 days).

- A form linked through the home page for selecting a movie and submitting a user review.

o Input fields should include

§ The name of the movie

§ Username

§ Rating in 5 stars

§ User review

o Output after submitting a review should show the name of the movie and all submitted information.

Solutions

Expert Solution

movierentalstore.php:-

<html>
<head>
   <title> Online movie rent store </title>
  
</head>
<body bgcolor="blue" alink="white " vlink="white " link="white">
       <br>
       <hr size="5" color="white">
       <center><font face="Monotype corsiva" size="25" color="yellow">   @@ Movies available for rent right now @@ </font></center>
       <font face="times new roman" size=6 color="white">
       <ol type="1">
       <li> Batman $40 ** Cast :- Michael Keaton   , Jack Nicholson , Kim Basinger   / Robert Wuhl **
   </li>
       <li> Godzilla 2019 $30 ** Cast :- Kyle Chandler, Vera Farmiga, Millie Bobby Brown ** </li>
       <li> Wonder Woman $50</li>
       <li> Terminator   $10</li>
       <li> Avengers : End Game $20</li>
       <li> Harry Potter $30</li>
       <li> Annabelle $20</li>  
       <li> hustlers $10</li>
       <li> Joker $50</li>
       <li> The Lion king $15</li>      
      
       </ol>
       </font>
       <a href="renting.php" alink="white"> Click here to rent the movie ... </a>
       <br>
       <a href="review.php" alink="white"> Click here to review the movie ... </a>      
</body>
</html>

review.php :-

<html>
<head>
   <title> Reviewing Page </title>

</head>
<body bgcolor="green" >       <hr size="5" color="white">
  
   <h1><center><font face="Monotype corsiva" size="25" color="yellow">   Review movie </center></font> </h1>       <hr size="5" color="white">
   <font size="6" face="times new roman" color="yellow">
   <form method="GET">

<label>Select movie</label>
<select name="movie1">
                           <option value="1" > batman</option>
                           <option value="2" > godzilla</option>
                           <option value="3" > wonder woman </option>
                           <option value="4" > terminator</option>
                           <option value="5" > avengers</option>
                           <option value="6" > Harry potter</option>
                           <option value="7" > Anabelle</option>
                           <option value="8" > Hustlers</option>
                           <option value="9" > Joker</option>
                           <option value="10" > The lion king</option>
                   <br>

           </select>
           <br><br>
                   Username :- <input type="text" name="name1" required="" > </input>
                   <br><br>
                   Review :- <input type="text" name="review" required="" > </input>
                   <br><br>
<label>Select rating</label>
<select name="rating">
                           <option value="1" > 1</option>
                           <option value="2" > 2</option>
                           <option value="3" > 3 </option>
                           <option value="4" > 4</option>
                           <option value="5" > 5</option>
                   <br>
          
           </select>
  
       <input type="submit" name="submit" required="" value="Submit">
       <input type="reset" name="reset" required="" value="Reset">
       <hr size="5" color="white">
      
      
       </form>
   <?php
   if(isset($_GET["submit"]))
   {   $name1=$_GET["name1"];
       $r=$_GET["review"];
       $re=$_GET["rating"];
       $m=$_GET["movie1"];
echo "Movie name :- ".$m." <br>";
       echo "Username :- ".$name1." <br>";

       echo "Review :- ".$r." <br>";
       echo "Rating :- ".$re. "Stars "." <br>" ;

       echo "Successfully submitted.. Thankks for your feedback " ;
   }      
      
   ?>
   </div>
</body>
</html>

rating,php

<html>
<head>
   <title> Renting Page </title>

</head>
<body bgcolor="red">       <hr size="5" color="white">
   <h1><center><font face="Monotype corsiva" size="25" color="yellow">   Renting movie </center></font> </h1>       <hr size="5" color="white">
       <form method="GET">
      
<label>Select movie</label>
<select name="movie1">
                           <option value="1" > batman</option>
                           <option value="2" > godzilla</option>
                           <option value="3" > wonder woman </option>
                           <option value="4" > terminator</option>
                           <option value="5" > avengers</option>
                           <option value="6" > Harry potter</option>
                           <option value="7" > Anabelle</option>
                           <option value="8" > Hustlers</option>
                           <option value="9" > Joker</option>
                           <option value="10" > The lion king</option>

           </select>

  
       <input type="submit" name="submit" required="" value="Submit">
       <input type="reset" name="reset" required="" value="Reset">
       <hr size="5" color="white">
      
      
       </form>
   </div>
   <div class="php">
   <?php
   if(isset($_GET["submit"]))
   {   $movie1=$_GET["movie1"];
       echo "Selected movie is : ".$movie1;
       echo "<br> </br>";
       echo "Amount charged : " ;
       switch($movie1)
       {
           case 1 : echo " 42 dollars" ;
           break;
           case 2: echo "31.5 dollars" ;
           break;
           case 3 : echo "52.5 dollars" ;
           break;
           case 4: echo " 10.5 dollars" ;
           break;
           case 5 : echo " 21 dollars" ;
           break;
           case 6 : echo "31.5 dollars" ;
           break;
           case 7: echo "21 dollars" ;
           break;
           case 8 : echo " 10.5 dollars" ;
           break;
           case 9: echo " 52.5 dollars" ;
           break;
           case 10 : echo " 16 dollars" ;
           break;
           }
               echo "Successfully rented" ;
   }      
      
   ?>
   </div>
</body>
</html>

The files are perfectly fine and executable and i am attaching each screenshot with the answer.


Related Solutions

This assignment is about creating a online movie rental store. Use arrays and loops for this...
This assignment is about creating a online movie rental store. Use arrays and loops for this assignment. 1) Create a web page containing a list of movie names available for rent (at least 10 movies), so that each time you visit the home page, you see a different order of movies in the list. The movie names are required, all other information is optional.) 2) The rental price for each movie ranges between $1.99 to $7.99.             • Create an...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can be anything you want: a country, a town, a place, a hobby, people (yourself, your family...), pets, flowers, food, or anything that you find interesting or useful. It may be about real people/places/things or fictitious. Part 1: Content (HTML) After you decide the theme of your website, create HTML pages with the content you want to present. Remember to separate content from presentation. The...
Create a web page using PHP and HTML that contains a list of movie names available...
Create a web page using PHP and HTML that contains a list of movie names available for rent (at least 10 movies), so that each time you visit the home page, you see a different order of movies in the list. The movie names are required. 2) The rental price for each movie ranges between $1.99 to $7.99. • Create an associative array with a code for the movie as the key (e.g., movie1, movie2, etc.) and the associated rental...
Using HTML/Javascript (if needed) I want to create a table for a website that pulls data...
Using HTML/Javascript (if needed) I want to create a table for a website that pulls data from another website where the data is being updated on. Example: https://investors.coca-colacompany.com/stock-information/historical-data I cannot just put in the numbers to a table as they will be getting updated daily. So it needs to link the the website elements. DATE OPEN HIGH LOW CLOSE VWAP VOLUME % CHG CHANGE TRADE VAL TOTAL TRADES 2020-10-13 -- -- -- 51.09 -- -- 0.00% -- -- -- 2020-10-12...
Create a website with html about raccons, just a simple html model to build off of...
Create a website with html about raccons, just a simple html model to build off of including multiple pages including a home, about us, and learn more page. Text filler not needed. Just the html structure.
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Please no JavaScript...
Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Please no JavaScript or Bootstrap. Website theme can be anything you want: a country, a town, a place, a hobby, people (yourself, your family...), pets, flowers, food, or anything that you find interesting or useful. It may be about real people/places/things or fictitious. Part 1: Content (HTML) After you decide the theme of your website, create HTML pages with the content you want to present. Remember to...
Create a Web Page Using HTML, CSS, JS, jQuery • Create a web profile, including any...
Create a Web Page Using HTML, CSS, JS, jQuery • Create a web profile, including any of the following: • Your hobbies, likes/dislikes, career aspirations, dream job, favorite animals/ pets, favorite superhero, etc. • You do not have to share personal information that you are uncomfortable with sharing. Follow these guidelines when creating your page: • Include at least one heading (h1, h2, etc.) in your web page. • Provide a quote from a book, movie, etc. • Include at...
HTML 5 (Website Registration Form with Optional Survey) Create a website registration form to obtain a...
HTML 5 (Website Registration Form with Optional Survey) Create a website registration form to obtain a user’s first name, last name and e-mail address. In addition, include an optional survey question that asks the user’s year in college (e.g., Freshman). Place the optional survey question in a details element that the user can expand to see the question.
Using the information available at the SEC's website or any other authoritative source, describe how the...
Using the information available at the SEC's website or any other authoritative source, describe how the SEC is structured.
I need pure html and css code for a demo website that sells stuff online (example...
I need pure html and css code for a demo website that sells stuff online (example amazon). I need a webpage that is about a specific product (shows price, image, description and etc etc.) Use of CSS is must. Use of Javascript would be an asset. Urgently needed.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT