Code:
session_start();
if ($_POST['text'] == '1')
{
$cookiewert = "wert";
setcookie("cookie", $cookiewert, time()+3600*24);
}
Selbst wenn ich nur
Code:
setcookie("cookie", "Wert", time()+3600*24);
2. Problem:
Code:
if (isset($_POST['submitvote'])){
if (isset($_COOKIE['cookie'])){
echo '<font color="red">Du kannst pro 24h nur einmal voten!</font>';
}
else
{
$votingdata = $_POST['select'];
mysql_query("UPDATE tabelle SET vote = 'vote'+1 WHERE titel = '".$votingdata."'");
echo '<font color="green">Erfolgreich gevotet!</font>';
}
}
^hab ich gelöst. nur noch Cookie :/
Liebe Grüße






