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]
3 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]3 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
Regulatory and informational markers are easily identified through which features
Darina [25.2K]
Regulatory or informational markers are utilized to inform you with respect to circumstances, threats, or headings. They may show reefs, swim territories, speed zones, and so forth. They can be effectively distinguished by the orange groups on the top and base of each float.
3 0
3 years ago
When molten igneous material intrudes into rock _____ metamorphism can occur.
Gnom [1K]
B) Contact metamorphism can occur.
8 0
3 years ago
Debate whether social networking is harmful or helpful to society.
Dmitriy789 [7]

Answer:

I believe that Social Networking <em>IS </em>helpful to society, but, people use it for wrong stuff.

5 0
2 years ago
the two main forces acting on a computer that sits on a table are _________ and _________. a. weight; gravity b. weight; mass c.
EleoNora [17]
It is A.weight: gravity
8 0
3 years ago
Read 2 more answers
IPv4 address are of how many types?<br>​
Butoxors [25]

Answer: four different types

There are four different types of IPv4 addresses: public, private, static, and dynamic. While the public and private are indicative of the location of the network—private being used inside a network while the public is used outside of a network—static and dynamic indicate permanency.

7 0
3 years ago
Other questions:
  • How many inputs are included in the following requirement? REQUIREMENT: Write a program that asks the employee for their age. Th
    6·1 answer
  • Which of the following is the part of a digital camera that acts as the film?
    11·1 answer
  • It is always better to run over and give more information when you are giving a presentation versus quitting on time. true false
    15·2 answers
  • You want to create Web pages that can easily adapt to and serve multimedia content to smartphones, tablets, gaming devices and s
    13·1 answer
  • sara has just started using the Internet. She would like to be more efficient . In 3-4, give sara some advice about how to be mo
    5·1 answer
  • Chen needs to configure a filter on the current folder and would like to filter by the sender of a message. Which tab in the Fil
    7·2 answers
  • Which font is most suitable for an academic article on a website? Which is most suitable for casual information?
    5·2 answers
  • PLEASE HELP WILL GIVE BRAINLIEST!!!’
    15·1 answer
  • Meera has created a small program in Python. She wants to store elements of the same data type in an organized
    7·1 answer
  • Who can give me answer for this kinda urgent pls
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!