sorry... I changed this:
if (mysql_num_rows($result)) {
$message = "You have already voted.";
print "<script>window.location.href='$url_this?menu=home&id=$artistid&message=$message'</script>";
exit;
}
else {
$ArtistID = $artistid;
$Vote = $_POST['vote'];
$IP = gethostbyname($hostname);
}
to this:
if (mysql_num_rows($result)) {
$ArtistID = $artistid;
$Vote = $_POST['vote'];
$IP = gethostbyname($hostname);
}
else {
$message = "You have already voted.";
print "<script>window.location.href='$url_this?menu=home&id=$artistid&message=$message'</script>";
exit;
}
And now the multiple voting is sorted.
Only problem I have now is the message that says that the form has not been filled out.
EDIT: sorry, I've been a mis-typing fool. I accidently changed:
//Has Form Been Submitted?
if (isset($_POST['action']) && ($_POST['submitted']== 'yes')) {
// Have all Fields been filled out?
if (!$_POST['vote']) {
to this..
//Has Form Been Submitted?
if (isset($_POST['vote']) && ($_POST['submitted']== 'yes')) {
// Have all Fields been filled out?
if (!$_POST['action']) {
it should be the first one.
Thanks for the help anyway.
resolved.