Forum Moderators: coopster
My questions is, is there any templates or scripts out there that have it set up so that a new quote will be displayed at each visit, and also that has a function that will allow people to add quotes?
Any help would be greatly appreciated. Thanks!
However there are many tutorials how to write to db on form submit, therefore it shouldn't be a problem to merge these two scripts.
in write.php:
<?php
if($_POST["action"] == "New Quote")
{
//mysql_connect...
$author = mysql_escape_string($_POST["author"]);
$text = mysql_escape_string($_POST["text"]);
mysql_querry("INSERT INTO quotes(author, text) VALUES('$author','$text')");
}
?>
Hope this helps!
Best regards
Michal Cibor
PS Sorry for 2 messages but I seem to have a problem submitting one long message on this forum.