Browse Source

Update form.php

redesign
Anxhelo Lushka 7 years ago
committed by GitHub
parent
commit
6a7336b7cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      form.php

7
form.php

@ -8,13 +8,6 @@ if (array_key_exists('to', $_POST)) {
$msg = ''; $msg = '';
$email = ''; $email = '';
//Apply some basic validation and filtering to the subject
if (array_key_exists('subject', $_POST)) {
$subject = substr(strip_tags($_POST['subject']), 0, 255);
} else {
$subject = 'No subject given';
}
//Apply some basic validation and filtering to the name //Apply some basic validation and filtering to the name
if (array_key_exists('name', $_POST)) { if (array_key_exists('name', $_POST)) {
//Limit length and strip HTML tags //Limit length and strip HTML tags

Loading…
Cancel
Save