Sanitize all input fields ( Compact Code )

24

Arun Kr.
01-Oct-25
  $fields = ['Name', 'Email_Address', 'Contact_Number', 'departure', 'Total_Members', 'description'];
    foreach ($fields as $field) {
        $_POST[$field] = htmlspecialchars($_POST[$field] ?? '', ENT_QUOTES);
    }
@Since 2024 Arun'Log Powered by Arun Git