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
vlabodo [156]
3 years ago
7

Create a PHP page that contains an array of at least 20 movie titles or book titles (your choice). The HTML page should have an

input box for the user to enter a username and a title of a favorite movie or a book. After the user enters a username, the page should display a welcome message.
Computers and Technology
1 answer:
ella [17]3 years ago
5 0

Answer:

This is the code

Explanation:

<html>

<form method="POST" action="welcome.php">

label for="usname">username:</label><br>

<input type="text" id="usname" name="usname"><br>

<label for="movietitles">Movietitles</label><br>

<textarea type="text" id="movetitle" name="movietitles">Please enter movie titles</textarea>

<input type="submit">

</form>

</html>

<?php

$Movietitles= array("bland", "decoy","Mademan", "Rich", "bland", "decoy","Mademan", "Rich", "bland", "decoy","Mademan", "Rich" , "bland", "decoy","Mademan", "Rich, "decoy","Mademan", "Rich", "Adapt" );

$username= $_POST['username'];

if (!empty($_POST['username'])) {

$username = $_POST['username'];

echo "Welcome";

}

?>

The post method HTTP request is used to send the data from the form to the Welcome.php file above so that it validates/tests that username has been entered using the php if statement and if it is not empty(entered username) php "echos" welcome to the screen.

You might be interested in
One software license model allows software to be freely distributed, downloaded, and installed without paying a license fee but
BabaBlast [244]

Answer:TRUE

IT IS AN OPEN SOURCE SOFTWARE

Explanation:AN OPEN SOURCE SOFTWARE is a software which is made to accessed free of charge,no lincense is required for the use of the software. This type of softwares are usually developed to help the users which may be students or for religious purposes or for vunerable persons whom the developer feels should have access to the software. The only fee required is for maintenance or for other special features. GOOGLE'S ANDROID OPERATING SYSTEM is considered as an open source software.

8 0
3 years ago
What will the document.write() statement display, given the following code snippet? var scores = new Array[94, 90, 88, 82, 73, 7
astra-53 [7]

Answer:

There are 7 scores recorded. The dropped score is 75

Explanation:

The code snippet above prints through the document.write() function. the output prints the string serving as the argument, and makes use of variables (lgth) and expression also (scores [lgth -1]). what it does is. From the point where it sees +lgth+, it checks the value, which is 7. And when it sees scores [lgth-1] it evaluates it to 75. Hence, the string above is produced.

4 0
3 years ago
WILL GIVE MORE POINTS, PLEASE HELP!!!
Karo-lina-s [1.5K]
Right 4 down 5 right 8 !!!!!!!!!
5 0
3 years ago
The _______ move the fabric forward in the machine. A. pressure plates B. zipper feet C. hem guides D. feed dogs
Lyrx [107]
The equipment that move the fabric forward are called "Hem guides"
8 0
4 years ago
Give an efficient algorithm to find all keys in a min heap that are smaller than a provided valueX. The provided valuedoes notha
OlgaM077 [116]

Answer:

Starting from root, recursively traverse the min-heap. Once we find a key with value less than our X, we know that every key in subtree of that key will be also smaller than our X. Otherwise, we should keep traversing.

Explanation:

The complexity of this algorithm will be O(N) where N is the number of keys in our min-heap.

3 0
3 years ago
Other questions:
  • Question 13 (6.67 points)
    7·1 answer
  • Write a java method called vowelCount that accepts a String as a parameter and produces/returns an array of integers representin
    7·1 answer
  • Anyone have good websites to cure boredom
    10·2 answers
  • You want to use a terminal emulation program to terminal into a series of Cisco routers. You will be managing these devices remo
    9·1 answer
  • What's the name of all kind of money around the world
    5·2 answers
  • The frame header at the Data Link layer includes hardware addresses of the source and destination NICs. What is another name for
    11·1 answer
  • Describing Report Tools Functions
    9·1 answer
  • I WILL GIVE MOST BRAINLY
    13·1 answer
  • Question 7<br> What is the description of The Ribbon?
    14·1 answer
  • An engine that generates hot, expanding gases by burning fuel inside the machine.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!