Stem onmiddenlijk opnemen

Status
Niet open voor verdere reacties.

Rindert

Gebruiker
Lid geworden
21 dec 2000
Berichten
66
http://www.dieter.combell.com/toplijst/vote.php?mail=dieter.m@combell.com
Nu zou ik willen dat de stem onmiddenlijk opgenomen word zonder dat je moet klikken

PHP:
<?php
include("design.php");
IF(!$vote) {
$sql = "SELECT * FROM sites WHERE mail = '$mail'";
$res = mysql_query($sql);
IF(mysql_num_rows($res) < 1) { print $lang['no_mail']; die(); }
$out = mysql_fetch_array($res);
?>
<html>
<head>
<title><?=$conf['title']?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<div align="center"><b><font size="4"><?=$conf['title']?><br>
  <br>
  <font size="3"><?=$lang['want_to_vote']?> "<?=$out[title]?>"?</font> <br>
  <br>
<form name="form1" method="post" action="vote.php">
  <input type="hidden" name="id" value="<?=$out[ID]?>">
  <input type="submit" name="vote" value="<?=$lang['vote']?>">
</form>
  <font size="2"><a href="<?=$conf['url']?>">
  <?=$conf['title']?>
  </a></font> </font></b></div>
</body>
</html>
<?php
}
elseif($vote == true) {
session_start();
IF($session_in[$id] != "yes") {
session_register('session_in');
$session_in[$id] = "yes";
$sql = "SELECT * FROM sites WHERE ID = $id";
$res = mysql_query($sql);
$out = mysql_fetch_array($res);
$out[click_in]++;
mysql_query("UPDATE sites SET click_in = '$out[click_in]' WHERE ID = $id");
}
?><html>
<head>
<title><?=$conf['title']?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<div align="center"><b><font size="4"><?=$lang['thanks']?></font><font size="4"><br>
  <br>
  <font size="3"><?=$lang['vote_registred']?></font> <br>
  <br>
  <font size="2"><a href="<?=$conf['url']?>"><font size="3"><?=$conf['title']?></font></a></font> 
  </font></b><br><br></div>
</body>
</html>
<?php
}
?>


Alvast bedankt
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan