This post has been edited by josh06: 08 June 2010 - 09:36 AM
31 Replies - 11938 Views - Last Post: 01 July 2010 - 06:46 AM
#17
Re: Week #22: PHP
Posted 08 June 2010 - 01:02 AM
This post has been edited by aniri: 08 June 2010 - 11:11 AM
#18
Re: Week #22: PHP
Posted 08 June 2010 - 01:45 PM
#19
Re: Week #22: PHP
Posted 08 June 2010 - 11:13 PM
#21
Re: Week #22: PHP
Posted 08 June 2010 - 11:34 PM
#22
Re: Week #22: PHP
Posted 09 June 2010 - 07:33 PM
josh06, on 05 June 2010 - 01:51 PM, said:
It uses MySQL, PHP and jQuery.
A simple little guestbook - logs IP addresses in case of abusive behaviour.
Guestbook
Please please add some messages and tell me what you think.
Only took about 40 minutes to make.
Ahhh. I love PHP..
Lol I was testing it against SQL injection, my named turned up kinda funny
Yours,
Shane~
#23
Re: Week #22: PHP
Posted 11 June 2010 - 10:41 AM
http://crimasi.com/ComicReader.zip
#24
Re: Week #22: PHP
Posted 11 June 2010 - 05:15 PM
<?
if (!$_REQUEST["hit"])
{
$_REQUEST["hit"] = 1;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Blackbox</title>
<style type="text/css">
html {
font: normal 80.5%/1 Tahoma,sans-serif;
background: #000000;
color: #EEEEEE;
}
a {
color: #999999;
}
</style>
</head>
<body>
<form action="button.php" method="post" target="_self">
<input name="hit" type="hidden" <? echo 'value="'.($_REQUEST["hit"]+1).'"'; ?> />
<? switch ($_REQUEST["hit"]) { case 1: ?>
<input name="button" type="submit" value="Do not push this button"/>
<? break; case 2: ?>
<input name="button" type="submit" value="I told you not to push this button" />
<? break; case 3: ?>
<input name="button" type="submit" value="I'm serious, you could get into a lot of trouble" />
<? break; case 4: ?>
<input name="button" type="submit" value="Okay, now you are in trouble" />
<? break; case 5: ?>
<input name="button" type="submit" value="Doing it again is only going to get you into more trouble" />
<? break; case 6: ?>
<input name="button" type="submit" value="Okay, no more button pushing for you" />
<? break; case 7: ?>
<input style="position: absolute; top: 2048px; left: 8745px;" name="button" type="submit" value="I don't see how anyone can find me here..." />
<p style="position: absolute; top: 4785px; left: 9574px;">:P/></p>
<? break; case 8: ?>
<input name="button" type="submit" value="How did you find me?" />
<? break; case 9: ?>
<input name="button" type="submit" value="Ok, if you like pushing butttons so much..." />
<? break; case 10: ?>
<?
for ($row = 0; $row < 20; $row++)
{
for ($col = 0; $col < 20; $col++)
{
if ($row == 15 && $col == 3)
{
echo '<input name="button" type="submit" value="" />';
}
else
{
echo '<input name="button" type="button" value="" />';
}
}
echo "<br />";
}
?>
<? break; case 11: ?>
<input name="button" type="submit" value="How did you find me in there with all those normal buttons?" />
<? break; case 12: ?>
<input name="button" type="submit" value="Why are you so set on pushing this button?" />
<? break; case 13: ?>
<input name="button" type="submit" value="Stop clicking this button right now" />
<? break; case 14: ?>
<input name="button" type="submit" value="I said stop it!" />
<? break; case 15: ?>
<input name="button" type="submit" value="If you click this button one more time, your car will explode" />
<? break; case 16: ?>
<input name="button" type="submit" value="Great going, now your car exploded!" />
<? break; case 17: case 18: case 19: case 20: case 21: ?>
<input name="button" type="submit" value="I am just going to ignore you now" />
<? break; case 22: ?>
<input name="button" type="submit" value="Why don't you just go away?" />
<? break; case 23: ?>
<input name="button" type="submit" value="Don't you have things to do?" />
<? break; case 24: ?>
<input name="button" type="submit" value="Or people to see?" />
<? break; case 25: ?>
<input name="button" type="submit" value="Fine, be that way" />
<? break; case 26: ?>
<input id="dat" style="position: absolute;" name="button" type="submit" value="Try to catch me now" />
<script type="text/javascript">
var t
function move()
{
var x = document.getElementById("dat");
if (t % 5 == 0){x.style.top = '113px';}
if (t % 7 == 0){x.style.left = '58px';}
if (t % 9 == 0){x.style.top = '256px';}
if (t % 11 == 0){x.style.left = '185px';}
if (t % 23 == 0){x.style.left = '12px';}
if (t % 29 == 0){x.style.left = '414px';}
if (t % 27 == 0){x.style.top = '359px';}
if (t % 34 == 0){x.style.left = '259px';}
t = setTimeout("move()",100);
}
t = setTimeout("move()",100);
</script>
<noscript><br /><br /><br />Your a dirty cheater you, with your Javascript disabled.</noscript>
<? break; case 27: ?>
<input name="button" type="submit" value="Do you have any idea how many times you've pushed this button?" />
<? break; case 28: ?>
<input name="button" type="submit" value="You've pushed this button 28 times" />
<? break; case 29: ?>
<input name="button" type="submit" value="Don't you think you've had enough?" />
<? break; case 30: ?>
<input name="button" type="submit" value="You are really starting to annoy me" />
<? break; case 31: ?>
<input style="width: 1px; height: 1px;" name="button" type="submit" value="" />
<? break; case 32: ?>
<input name="button" type="submit" value="You have a good eye" />
<? break; case 33: ?>
<input name="button" type="submit" value="And that was not a complement" />
<? break; case 34: ?>
<input name="button" type="submit" value="Really, I do not like you at all" />
<? break; case 35: ?>
<input name="button" type="submit" value="What would you do if I dissapeared?" />
<? break; case 36: ?>
<input name="button" type="submit" value="I suppose you would cry..." />
<? break; case 37: ?>
<input name="button" type="submit" value="Okay, goodbye!" />
<? break; case 38: ?>
<input style="color: #000000; background: #000000; border-width: 0px;" name="button" type="submit" value="I'm still here" />
<? break; case 39: ?>
<input name="button" type="submit" value="I was just kidding" />
<? break; case 40: ?>
<input name="button" type="submit" value="Could you please stop pushing this button?" />
<? break; case 41: ?>
<input name="button" type="submit" value="Please?" />
<? break; case 42: ?>
<input name="button" type="submit" value="Pretty please?" />
<? break; case 43: ?>
<input name="button" type="submit" value="With a cherry on top?" />
<? break; case 44: ?>
<input name="button" type="submit" value="Fine" />
<? break; case 45: ?>
<input name="button" type="submit" value="Now I'm running out of things to say" />
<? break; case 46: ?>
<input name="button" type="submit" value="This is getting boring" />
<? break; case 47: ?>
<pre>< <input style="background: #000000; color: #FFFFFF;" name="button" type="submit" value="Do not push this button" /> >
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||</pre>
<? break; case 48: ?>
<input name="button" type="submit" value="You don't listen to cows?" />
<? break; case 49: ?>
<input name="button" type="submit" value="You should listen to cows" />
<? break; case 50: ?>
<input name="button" type="submit" value="They are very knowledgeable" />
<? break; default: ?>
<input name="button" type="submit" value="To be continued..." />
<? } ?>
</form>
</body>
</html>
#25
Re: Week #22: PHP
Posted 13 June 2010 - 11:36 PM
ShaneK, on 09 June 2010 - 06:33 PM, said:
josh06, on 05 June 2010 - 01:51 PM, said:
It uses MySQL, PHP and jQuery.
A simple little guestbook - logs IP addresses in case of abusive behaviour.
Guestbook
Please please add some messages and tell me what you think.
Only took about 40 minutes to make.
Ahhh. I love PHP..
Lol I was testing it against SQL injection, my named turned up kinda funny
Yours,
Shane~
Aha that's what you get for trying it out
#26
Re: Week #22: PHP
Posted 14 June 2010 - 09:35 AM
Regards,
Jeff
#28 Guest_Shane T*
Re: Week #22: PHP
Posted 14 June 2010 - 05:49 PM
<a href src="http://www.milliestavern.com/">Link here</a>
#29
Re: Week #22: PHP
Posted 21 June 2010 - 10:02 AM
#30
Re: Week #22: PHP
Posted 22 June 2010 - 06:20 AM
Anyway, a script for delivery systems: makes use of php, html, javascript. Id like to say that the check boxex are generated in a php loop. and the javascript auto checkers, check the relative boxes in a loop too.
Week 22 PHP Code
Cheers
Chalrie
|
|

New Topic/Question
Reply




MultiQuote











|