Question: Step 1 : Create a new PHP document. Step 2 : In the PHP document add the following code: Create a GET method Create a

Step 1:
Create a new PHP document.
Step 2:
In the PHP document add the following code:
Create a GET method
Create a POST method
Create 3 Radio Buttons
Create 3 checkboxes
Create a Loop that processes an Array (screenshot the message displayed in the browser)
Create a Drop-down List
Create a List Box that allows multiple selections
Create a Text Area Box
Create an Echo Statement with at least 3 variables
Create a Print Statement with at least 3 variables
Create a Switch Statement
Create a While Loop finding the average of 50 random numbers
Create a Nested While Loop that gets the average and minimum rolls for the number 12
Create a Do-while loop that finds the min and max of 2 random values from 0-50
For example, create one document that demonstrates each item above like this:
// This is an example of GET Method
echo "Study ". $_GET['subject']." at ". $_GET['web']
// This is an example of POST Method
if($_SERVER["REQUEST_METHOD"]=="POST"){
// collect value of input field
$name =$_POST['fname'];
if(empty($name)){
echo"Name is empty";
}else{
echo$name;
}
}
Step 3:
After you have completed adding all the required code above, save the files as "yourName"_lab4.php

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 Programming Questions!