In the provided PHP code, why is it recommended to use $_POST['gesendet'] instead of $gesendet in the conditional statement?

Using $_POST['gesendet'] is recommended in the conditional statement because it directly accesses the value of the 'gesendet' key from the POST superglobal array, which contains data submitted via an HTML form using the POST method. On the other hand, using $gesendet without sanitizing or validating it could pose security risks such as injection attacks. By using $_POST['gesendet'], you ensure that you are working with the expected form data in a secure manner.

if(isset($_POST['gesendet'])) {
    $gesendet = $_POST['gesendet'];
    // Further processing of the form data
}