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
dybincka [34]
2 years ago
5

Create a page using PHP for a business website that will ask the user to enter his or her name into text boxes and will display

a welcome message that uses the user’s name.

Computers and Technology
1 answer:
Jet001 [13]2 years ago
4 0

Answer:

1         <?php

2            if (isset($_GET["submit"])) {

3                 echo "Welcome " . $_GET["name"];

4                }  

5         ?>

6

7

8         <form method="get">  

9            <input name="name" type="text" placeholder="Enter your name"/>

10           <button name="submit" type="submit">Submit</button>

11          </form>  

12

13         <?php

14          ?>

<h2>Explanation:</h2>

Lines 1 - 5    check if the user has clicked on the submit button.

                    If the button has been clicked the a welcome message is    

                    shown.

Lines 8 - 11   create a form to hold the text box and the submit button

                    Give the form a <em>method</em> attribute of value <em>get        [Line 8]</em>

<em>                     </em>Give the input field a <em>name</em> attribute of value <em>name </em>and a

                    placeholder attribute of value <em>Enter your name      [Line 9]</em>

<em>                     </em>Give the button a <em>name </em>attribute of value <em>submit</em> and a <em>type</em>

                    attribute of value <em>submit</em>                                            <em>[Line 10]</em>

<em />

<em />

<em />

<em />

PS: Save the file as a .php file and run it on your server. Be sure to remove the line numbers before saving. A sample web page is attached to this response.

You might be interested in
The first graphical browser application for using the web was netscape. <br> a. True <br> b. False
Mamont248 [21]
Hello <span>Jcece6710 
</span>

Question: <span>The first graphical browser application for using the web was netscape. True or False


Answer: True

Hope that helps
-Chris</span>
5 0
3 years ago
Ethereum Mining Calculator Profitability and Difficulty Level?
yanalaym [24]

Profitability Calculator: https://www.cryptocompare.com/mining/calculator/eth?HashingPower=200&HashingUnit=MH%2Fs&PowerConsumption=140&CostPerkWh=0.12&MiningPoolFee=1

Difficulty Level Chart: https://www.coinwarz.com/difficulty-charts/ethereum-difficulty-chart

3 0
3 years ago
The amount of memory used by an array depends upon the array's data type and the number of elements in the array. True False
OverLord2011 [107]

Answer:

True

Explanation:

6 0
2 years ago
If you are weak or lacking in an area or skillset, what kinds of things can you do to compensate or improve?
Ilya [14]
Put some more of your time to help improve that skill.try to learn to get better.
6 0
2 years ago
While traveling in India, Sabina notes all of her daily expenses in rupees in her spreadsheet. At the end of the day, she wants
Contact [7]
Use currency conversion dialog box select rupee to us dollar
8 0
3 years ago
Other questions:
  • How many bits are required to address a 1mx8 main memory if main memory is byte addressable?
    6·1 answer
  • What is a gutter margin?
    5·2 answers
  • Using either a UNIX or a Linux system, write a C program that forks a child process that ultimately becomes a zombie process. Th
    8·1 answer
  • You can change the transparency of a picture used as a slide’s background with the ____.
    10·1 answer
  • In the context of the box model, what is the difference between a margin and padding
    8·1 answer
  • The letters a, e, i, o and u are the only vowels. Write a function named vowelUseDict() takes a string t as a parameter and comp
    7·1 answer
  • Xxx<br>uuuuuu<br>uuuu<br>jjnmn<br>jjh
    12·1 answer
  • I Previous
    6·1 answer
  • What keyword is used in Java to create a parent/child relationship between two classes?
    14·1 answer
  • What represents a user’s specific preferences?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!