PORTRAITS   LOCATIONS   EVENTS   PROFILE   GUESTBOOK



Comments:

"); $result = mysql_query("select * from $tablename ORDER BY id",$db); while ($myrow = mysql_fetch_array($result)) { echo("$myrow[1]:
$myrow[3]

"); } echo("
name:

email (will not be published):

the value of 𝛑 to two decimal places:

message (required):

"); } // are there spam-words in the message? if (is_spam($_POST[new_message]) == TRUE ) { return; } if ($_POST[new_pi] == "3.14" && $_POST[new_email] && $_POST[new_message] && $_POST[action] == "record_insert") { if (!$_POST[new_name]) $_POST[new_name]='Anonym'; $_POST[new_message] = htmlspecialchars($_POST[new_message]); $_POST[new_message] = nl2br($_POST[new_message]); $result = mysql_query("insert into $tablename values ('','$_POST[new_name]','$_POST[new_email]','$_POST[new_message]') ",$db); if (!$result) { echo("error!"); exit; } echo("Thank you for posting the comment. Click here to see your message. Just do not refresh the page to prevent double posting."); mail('tomamil@gmail.com', 'new comment', "new entry from $_POST[new_name] added to $bodyname"); } else if (!$_POST[new_message] && $_POST[action] == "record_insert") { echo("Come on! It has no text! Click here to go back."); } else if (!$_POST[new_email] && $_POST[action] == "record_insert") { echo("E-mail, please! Click here to go back."); } else if ($_POST[new_pi] != "3.14" && $_POST[action] == "record_insert") { echo("Seriously, you don't know the value of 𝛑!? Click here to go back."); } mysql_close($db); ?>
© 2010 - 2011 Milan Toma Photography - MiToGraphy,