Course Solutions Uncategorized (Solved) : Define Variables Set Empty Values Gpaerr Phoneerr Gendererr Gpa Phone Gender Server Reques Q38174556 . . . .

(Solved) : Define Variables Set Empty Values Gpaerr Phoneerr Gendererr Gpa Phone Gender Server Reques Q38174556 . . . .

 

  
// define variables and set to empty values
$gpaErr = $phoneErr = $genderErr = “”;
$gpa = $phone = $gender = “”;
  
if ($_SERVER[“REQUEST_METHOD”] == “POST”) {
$Name = $_POST [‘Name’];
$gpa = $_POST [‘gpa’];
$phone = $_POST [ ‘phone’];
$gender = $_POST [‘gender’];
$major = $_POST [ ‘major’];
$hobby = $_POST [ ‘hobby’];
$comment = $_POST [‘comment’];

function test_input($data) {
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
}
print “

Thank you for taking this survy $Name!

” ;
print “Your gender is $gender, and you stdying $major.

“;
print “Your GPA is : $gpa .

“;
print ” Phone number : $phone .

“;
print ” Your hobby is $hobby.

“;
print ” $comment “;
}
?>

For this php Form, I need to create

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Hotel Occupancy Hotel 8 Floors 30 Rooms Floor Create Application Calculates Occupancy Rate Q30637573 . . . .(Solved) : Hotel Occupancy Hotel 8 Floors 30 Rooms Floor Create Application Calculates Occupancy Rate Q30637573 . . . .

Use Visual Basic. Name all controls and follow guidelines..<br/><img src="https://media.cheggcdn.com/media%2F778%2F778a7e18-c227-454b-95ff-718504ec928c%2Fimage" alt="Hotel Occupancy The Hotel has 8 Floors and 30 rooms on each floor. Create an application that calculates the occupancy

(Solved) : 12 Develop Class Averaging Program Process Arbitrary Number Grades Time Program Run Progra Q27623886 . . . .(Solved) : 12 Develop Class Averaging Program Process Arbitrary Number Grades Time Program Run Progra Q27623886 . . . .

<br/><img src="https://media.cheggcdn.com/media%2Fefd%2Fefdc3e4e-9abf-41fe-a0ef-44b0178a193c%2Fimage" alt="12) Develop a class averaging program that will process an arbitrary number of grades each time the program is run. The program should also: a) Counts the number