assign('error',$error); } if($_GET['e']==2) { $error ="Incorrect username/password combination."; $smarty->assign('error',$error); } $smarty->assign('text','adswap beta'); $smarty->display('index.tpl'); ?>