Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /www/g/o/u31045/public_html/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152

Warning: mysql_real_escape_string(): A link to the server could not be established in /www/g/o/u31045/public_html/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152
Flip the Coin – GoodPlace
Aug 152012

Simple presentation of php random function – http://flip-coin.goodplace.eu/

Flip coin

Page is refreshed after click on the Button. Picture of Coin is loaded according to results of random function.

How its made

<input type="button" value="Flip !" onClick="window.location.reload()">
if (rand(0,1) == 0) {
echo "<img src=\"1eurohead.jpg\" alt=\"Head\" title=\"Head\" border=\"0\" height=\"225\" width=\"225\">";
else {
echo "<img src=\"1eurotail.jpg\" alt=\"Tail\" title=\"Tail\" border=\"0\" height=\"225\" width=\"225\">";

Small update on site Flip the Coin.
Simple responsive template added.

Picture of boring usual 1 Euro coin replaced with very nice gold slovak 100 Euro collector coin picturing slavic earl Rastislav.

Coin head
Coin tail

Enjoy ! 🙂