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$REQUESTname 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 $REQUESTname is a nonempty value. Remember that $REQUESTname would give a falsey value and $REQUESTname "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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
