title: php link to 2 things
body: <p>Is there any way in php to have a link so that when the user clicks on the link, they call a function and then immediately after calling the function, the user is redirected to another webpage.</p>
  
  <pre><code>$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
  }
  
  &lt;a href="&lt;?php echo $C['tdURL'].$acceptEmailInvite; ?&gt;"&gt;Accept the invitation for: &lt;b&gt;&lt;?php echo $D['referer']; ?&gt;&lt;/b&gt;&lt;/a&gt;
  </code></pre>
  
  <p>EDIT: I meant that these two things happen only when the link is clicked. So the user should not be redirected unless the link is clicked. Sorry for the confusion.                     </p>