topical media & game development
server-php-micro-chat-index.php / php
<?php
session_start();
function createForm(){
?>
<form action="<?php echo _GET['u'])){
unset(_POST['submitBtn'])){
_POST['name']) ? _SESSION['nickname'] = nickname = isset(_SESSION['nickname'] : "Hidden";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Micro Chat</title>
<link href="style/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
<!--
var httpObject = null;
var link = "";
var timerID = 0;
var nickName = "<?php echo _SESSION['nickname']) ){
createForm();
} else {
_POST['name']) ? _SESSION['nickname'] = data = file("msg.html");
foreach (line) {
echo
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.