when creating if statements in PHP, be aware of the difference between the assignment operator (=) and the comparison operator (==)
in the if statement, you are assigning the value of the $reqschedule variable to "Yes"
if ($reqschedule = "Yes") {
your if statement needs to use the comparison operator instead:
if ($reqschedule == "Yes") {