Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // if variables are declared in post and are not null
- if($_POST) {
- // if POST is received but field is empty return $error
- if(!$_POST['username']) {
- $error = "Enter username";
- }
- if($error){
- $smarty->assign('error', $error);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement