User ". $_SESSION['name'] ." has left the chat session.
"); fclose($fp); session_destroy(); header("Location: index.php"); //Redirect the user } function loginForm(){ echo'

Please enter your name to continue:

'; } if(isset($_POST['enter'])){ if($_POST['name'] != ""){ $_SESSION['name'] = stripslashes(htmlspecialchars($_POST['name'])); } else{ echo 'Please type in a name'; } } ?> Chat - Customer Module
0){ $handle = fopen("log.html", "r"); $contents = fread($handle, filesize("log.html")); fclose($handle); echo $contents; } ?>