session_start(); function loginForm(){ echo'
Please enter your name to continue:
Name:
'; } if(isset($_POST['enter'])){ if($_POST['name'] != ""){ $_SESSION['name'] = stripslashes(htmlspecialchars($_POST['name'])); } else{ echo '
Please type in a name
'; } } ?>
Welcome,
Exit Chat