Hallo ich hab mal ein Problem.
Es wird kein Cookie gesetzt, auch nach einem Reload, wird kein Cookie gesetzt. Diese Zeilen befinden sich direkt am Anfang des Dokuments..
Selbst wenn ich nur
mache, wird kein Cookie gesetzt, bei keinem Browser.
2. Problem:
Wird nicht erhöht?
^hab ich gelöst. nur noch Cookie :/
Liebe Grüße
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