1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
anastassius [24]
3 years ago
8

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

clude: - A front/home page containing a list of movies available for rent (list at least 8 movies). o Each movie should have a listed rental price. o Note: You can use the same rental price for every movie (i.e., it can be declared as a constant).
Computers and Technology
1 answer:
FromTheMoon [43]3 years ago
7 0

Answer:

HTML and PHP code is given below using 10 movie selections

Explanation:

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>

You might be interested in
A general-use dimmer switch is required to be counted as ? where installed in a single-gang box on a circuit wired with 12 awg c
aleksandrvk [35]

Answer:

2 conductors.

Explanation:

A dimmer switch is an electrical switching or control device used to control the power or voltage to a compatible dimmer bulb.

It reduces the ambience if light bulbs by uniformly increasing the resistance of the switch when the knob is rotated to a lesser point. It is a circuit breaker as two conductors are connected to its terminals and a variable voltage resistor determines the flow of current between them.

3 0
4 years ago
Who is responsible for protecting the environment? a. Government b. Employers c. Employees d. Everyone Please select the best an
Veronika [31]

Answer:

A

Explanation:

Hope I helped

7 0
3 years ago
Read 2 more answers
Describe how the process of sampling, RGB pixels, and binary sequences work together to display a digital color image. Plz I got
iragen [17]

Answer:

Sampling, RBG pixels and binary sequences work together to display a digital color image by letting the computer know where the RBG pixel is going to be placed and what the opacity for that pixel is. The combination of these components is what gives you a digital color image.

Explanation:

I'm not sure if this is correct because I had trouble with it too but this is what I wrote for the answer.

4 0
3 years ago
DNS forwarding can be set up so that if the DNS server that receives the forwarded request cannot resolve the name, then the ser
hoa [83]

Answer:

Nonexclusive forwarding

Explanation:

In Nonexclusive forwarding, DNS forwarding is setup so that if the DNS server receiving the forwarded request cannot resolve the name, then the server that originally forwarded the request makes an attempt to resolves it. If that fails, the server sends a request to its designated forwarder.

8 0
3 years ago
6.12.1: Return number of pennies in total. Write a function NumberOfPennies() that returns the total number of pennies given a n
Anit [1.1K]

Answer:

public class Pennies

{

public static void main(String[] args) {

 System.out.println("Total pennies: " + NumberOfPennies(5, 6));

               System.out.println("Total pennies: " + NumberOfPennies(5));

}

public static int NumberOfPennies(int amount, int pennies) {

    int total = (amount * 100) + pennies;

   

    return total;

}

public static int NumberOfPennies(int amount) {

    NumberOfPennies(amount, 0);

    int total = amount * 100;

   

    return total;

}

}

Explanation:

- Create a function called NumberOfPennies that takes two parameters, amount and pennies

- In order to calculate the number of pennies, multiply the given amount by 100 and add the pennies. Set this result to the total and return the total.

- Since pennies parameter should be optional, overload the function NumberOfPennies so that it can take one parameter, amount. When it takes one parameter, the value of the pennies set to 0.

Inside the main, call the function with two possible scenarios

3 0
3 years ago
Other questions:
  • What is the best strategy to avoid paying interest on your credit card
    8·1 answer
  • What is a form of a stationary mouse on which the movement of a finger causes the pointer on the screen to move?
    7·1 answer
  • What are the steps to creating a blank database? Use the drop-down menus to complete them.
    9·1 answer
  • Research: Using the Internet or a library, gather information about the Columbian Exchange. Takes notes about the specific goods
    15·1 answer
  • How can I find all the answers for the NWEA MAP Math, English, Reading, and Science tests? Please help!!!!! I found some answers
    6·1 answer
  • Amber wants to give her audience copies of her presentation so they can follow along and take notes. What option should Amber ch
    9·2 answers
  • What is meant by a control plane that is based on logically centralized control? In such cases, are the data plane and the contr
    8·1 answer
  • Diane changes the size of an image with the format picture pane and keeps the original ratio of height to width of the object. W
    8·1 answer
  • Look over the image in the top section and choose which piece from the bottom should be placed in the question mark (?) that wou
    11·1 answer
  • What enforces the location in which an app can function by tracking the location of the mobile device?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!