Question: ir Program: Buckle My Shoe In this pair program, you will create a simple web form that allows a user to enter a number and

 ir Program: Buckle My Shoe In this pair program, you will

create a simple web form that allows a user to enter a

ir Program: Buckle My Shoe In this pair program, you will create a simple web form that allows a user to enter a number and click a button. Then, you will display a text response based on the children's nursery rhyme, "One, Two, Buckle My Shoe," as shown on the right You can preview the completed application at One, Two, Buckle My Shoe 1, 2, buckle my shoe. 3,4, shut the door. 5, 6, pick up sticks. 78, lay them straight 9. 10, a big fat hen! You will use Replit for this pair Program. Be sure to turn on your video and take turns typing! 2. Change the title of your page. In the , before the PHP block, create the page shown below. Give the text input a name attribute and set its value to number. Buckle My Shoe Enter a number 1-10 to see what you should do! Number: GO 3. Make sure that your text input and button are inside a

Set your form attributes so that the form sends data to the same page, using the post method:
4. Inside the PHP block, after the form, add a conditional that checks to see if number is in the POST array. If it is, then we know that a number has been submitted and we can: a. Assign the value from the POST array to an ordinary variable b. Change the echo statement from the default "Hello World" to print the number that was entered

$num"; } ?>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!