Skip to content

Instantly share code, notes, and snippets.

@azizozbek
Last active November 30, 2017 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azizozbek/5d8fb1943a9caab911e81f82d3d4e0f5 to your computer and use it in GitHub Desktop.
Save azizozbek/5d8fb1943a9caab911e81f82d3d4e0f5 to your computer and use it in GitHub Desktop.
<?php
$name = addslashes(strip_tags($_POST['name']));
$sub = addslashes(strip_tags($_POST['subject']));
$email = addslashes(strip_tags($_POST['email']));
$message = addslashes(strip_tags($_POST['message']));
if(empty($name) || empty($email) || empty($message) || empty($sub)){header("Location:form.php?empty"); }else{
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment