有没有什么办法在PHP中有一个链接,以便当用户点击链接时,他们调用一个函数,然后立即调用该函数后,用户被重定向到另一个网页。php链接到2件东西
$acceptEmailInvite; //append this url to the url in the link
if($app[UID]) {
//how do I have a link connect to two redirects?
$acceptEmailInvite = '/idx.php/store/accept/'.{$org['id']}; //link to this first
$acceptEmailInvite = 'getLink?org='.$D['bta']; //then link to this
}
<a href="<?php echo $C['tdURL'].$acceptEmailInvite; ?>">Accept the invitation for: <b><?php echo $D['referer']; ?></b></a>
编辑:我的意思是,这两件事情只发生在链接被点击时。所以用户不应该被重定向,除非链接被点击。对困惑感到抱歉。
ohhhhh,我认为这应该做到这一点。谢谢! – BrettG