Advertisement
darryljf

join.php - stripped

Mar 24th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. // if variables are declared in post and are not null
  3.   if($_POST) {
  4.     // if POST is received but field is empty return $error
  5.  
  6.     if(!$_POST['username']) {
  7.       $error = "Enter username";
  8.     }
  9.  
  10.     if($error){
  11.       $smarty->assign('error', $error);
  12.     }
  13.   }
  14.  
  15.  
  16.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement