All pastes #492805 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-17 13:00 UTC
rendered paste body
<?php
				
					if (isset($_SESSION[loggedIn]))
					{
						print_r();
						echo "<form action=\"logout.php\" method=\"post\">
						User <b>$_SESSION[loggedIn]</b> is Logged In
						<input type=\"submit\" name=\"logOut\" value=\"Log Out!\" />
						</form>";
					}
					else
					{ 			
				?>
					<form name="input" action="login.php" method="post">
						Login:<input type="text" name="username">
						Password:<input type="text" name="password">
						<input type="submit" value="Log In">
					</form>
				<?php
					}
				?>