All pastes #931363 Raw Edit

LAWL

public text v1 · immutable
·published 2008-03-07 03:13 UTC
rendered paste body
<html>
<head>
<title>J-SIM</title>
</head>

<body>
<form method="post" onSubmit="lol">
	<input type="text" name="code" style="width:500px;height:250px;"><br />
	<input type="submit" name="submit" value="Submit">
</form>
<br /><br /><br/ >
<?php
if(isset($_POST['submit'])){
	$code = htmlspecialchars($_POST['code']);
	if (preg_match("/\bprint\b/i", $code)) {
		echo substr($code, -3);
	}else{
		echo "Incorrect code!";
	}
}
?>