Monthly Archives: October 2013
Rock, Paper or Scissors Javascript
Rock, Paper or scissors javascript code This is a Rock, Paper and Scissors javascript made at http://www.codecademy.com/ while following the… Continue reading »
HTML doctypes
HTML 5
1 |
<!DOCTYPE html> |
HTML 4.01 Strict
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
HTML 4.01 Transitional
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
HTML 4.01 Frameset
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> |
XHTML… Continue reading »
Debian USB bitcoin miner
Debian bitcoin miner compatible with ASIC usb miners #1 Start debian *Type the following commands in your debian terminal* #2… Continue reading »
Jquery Mobile contact form
Jquery Mobile contact form Update: This updated version contains javascript form validation that also works with android and iphone. This… Continue reading »
anti-flood PHP contact form
Anti-flood form with PHP This is an easy solution to prevent somebody flooding your contact form.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<?php session_start(); // Place your Contact form script here // anti-flood protection if (!empty($_SESSION['antiflood'])) { $seconde = 30; // 30 seconds delay $tijd = time() - $_SESSION['antiflood']; if($tijd < $seconde) $antiflood = 1; } // Contact form mailing if ($antiflood == "") { $_SESSION['antiflood'] = time(); @mail($email_to, $email_subject, $email_message); } else { echo" Flooding detected"; } } ?> |
This script contains… Continue reading »