Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 55 lines (40 sloc) 1.394 kb
01fbad7 First commit
Chris Coyier authored
1 <?php
2 session_start();
3
4 if (!isset($_SESSION['userid'])):
5 ?>
6
7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8 <html xmlns="http://www.w3.org/1999/xhtml">
9
10 <head>
11 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
12
13 <title>Chat2</title>
14
15 <link rel="stylesheet" type="text/css" href="main.css" />
16
17 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2" type="text/javascript"></script>
18 <script type="text/javascript" src="check.js"></script>
19 </head>
20
21 <body>
22
23 <div id="page-wrap">
24
25 <div id="header">
26 <h1><a href="/examples/Chat2/">Chat v2</a></h1>
27 </div>
28
29 <div id="section">
30 <form method="post" action="jumpin.php">
31 <label>Desired Username:</label>
32 <div>
33 <input type="text" id="userid" name="userid" />
34 <input type="submit" value="Check" id="jumpin" />
35 </div>
36 </form>
37 </div>
38
39 <div id="status">
40 <?php if (isset($_GET['error'])): ?>
41 <!-- Display error when returning with error URL param? -->
42 <?php endif;?>
43 </div>
44
45 </div>
46
47 </body>
48
49 </html>
50
51 <?php
52 else:
53 require_once("chatrooms.php");
54 endif;
55 ?>
Something went wrong with that request. Please try again.