做新的窗口重定向确认添加点


Newbie Make new window redirect confirm addition of points

<a href="index.php?module=voteforpoints&action=vote&sid=<?php echo $site->site_id; ?>" target="_blank">Get 1 Point</a>

我有一个游戏服务器,我们通过投票来排名。

这是一个脚本,每当玩家点击这个,一个投票点将被添加。但大多数时候,玩家只是点击链接而不是"投票",因为他们仍然可以积累积分。

我的问题是,我如何使脚本重定向到一个新窗口,这个新窗口将有链接,当玩家点击它,投票点将被添加。

谢谢,我是HTML和PHP的新手,但我擅长CSS:)

从我的理解访问"index.php?module=voteforpoints&action=vote&sid=…"得到一分

尝试创建一个新页面,例如vote.php,包含实际的投票链接:<a href="index.php?module=voteforpoints&action=vote&sid=<?php echo $site->site_id; ?>" >Get 1 Point</a> -不带'target'

现在将旧链接替换为:<a href="vote.php" target"_blank" >Get 1 Point</a>