-
[PHP] "Trick" Page
cause I was bored and felt like making my friend **** one day...
PHP Code:
<html>
<body>
<?php
$msg = 'pgmr.co.uk ftw';
if(empty($_POST['submit']) === false) {
while(1 == 1) {
echo '
<script language="javascript">
alert(\''.$msg.'\');
</script>
';
}
} else {
echo '
<form method="post" action="">
<input type="submit" value="Bored? Click Here?" name="submit" />
</form>
';
}
?>
</body>
</html>
only works with js enabled
-
Why not just do it all in javascript :P
-
-
Code:
<script type="text/javascript">
function Bordem()
{
while( 1 == 1 )
{
alert( 'Boo hoo, ****.' );
}
}
</script>
<button onClick="Bordem();">Bored? Click here</button>