Question: Update your sucker.php file to verify that the user did not leave any fields blank when submitting the form. You can check whether a particular

Update your sucker.php file to verify that the user did not leave any fields blank when submitting the form. You can check whether a particular parameter has been passed using the PHP function isset.
However, isset($_REQUEST["name"]) will only check if the $_REQUEST associative array has "name" as one of its keys; it does not check to see if the value of $_REQUEST["name"] is a non-empty value. Remember that $_REQUEST["name"]="" would give a falsey value and $_REQUEST["name"]= "abc" would give a truthy value.
If the user has not filled in every field, show an error message like the one below instead of displaying their submitted data:

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!