voting form
Posted: Tue Nov 04, 2003 6:00 am
<?php
if ( $submit )
{
if ( $vote )
{
echo "You rated me a: $vote <br>Thank you very much!<br><br>";
}
}
?>
<html>
<head>
<title> Vote form </title>
</head>
<body>
Rate my script [ 1 (sucks) - 5 (best) ] <br>
<blockquote>
<form name="vote" method="post" action="vote.php">
<input type="radio" name="vote" value="1"> - 1 <br>
<input type="radio" name="vote" value="2"> - 2 <br>
<input type="radio" name="vote" value="3"> - 3 <br>
<input type="radio" name="vote" value="4"> - 4 <br>
<input type="radio" name="vote" value="5"> - 5 <br>
<br>
<input type="submit" name="submit" value="Rate Me!">
</form>
</blockquote>
</body>
</html>
how to have an statistic about this voting form how to now how many people have voted me with excelent
i belive thet i must work with database mysql
but how to ...
if ( $submit )
{
if ( $vote )
{
echo "You rated me a: $vote <br>Thank you very much!<br><br>";
}
}
?>
<html>
<head>
<title> Vote form </title>
</head>
<body>
Rate my script [ 1 (sucks) - 5 (best) ] <br>
<blockquote>
<form name="vote" method="post" action="vote.php">
<input type="radio" name="vote" value="1"> - 1 <br>
<input type="radio" name="vote" value="2"> - 2 <br>
<input type="radio" name="vote" value="3"> - 3 <br>
<input type="radio" name="vote" value="4"> - 4 <br>
<input type="radio" name="vote" value="5"> - 5 <br>
<br>
<input type="submit" name="submit" value="Rate Me!">
</form>
</blockquote>
</body>
</html>
how to have an statistic about this voting form how to now how many people have voted me with excelent
i belive thet i must work with database mysql
but how to ...