title: PHP dropdown box redirect to different URL depending on selection?
body: <p>Have a dropdown box which can have between 1-3 publications in it, depending on which pubs a person has subscribed to:</p>
  
  <pre><code>&lt;?php foreach ($userCurrSubs as $pubChoice) { ?&gt;
  &lt;option value="
  &lt;?php { echo $pubChoice-&gt;redirect_url ?&gt;"&gt;
  &lt;?php echo $pubChoice-&gt;pub_name  ?&gt;
  &lt;/option&gt;
  </code></pre>
  
  <p>When the user selects his desired publication, he is redirected to a particular URL (redirect_url in the code above).  The redirect_url code looks like this:</p>
  
  <pre><code>while($row_Recordset2 = mysql_fetch_assoc($pubResultSet)){
  $temppubItem = new PubItem();
  $temppubItem-&gt;pub_name = $row_Recordset2['pub_name'];
  $redirectURLtemp = $redirectURL . $temppubItem-&gt;pub_name. "/login/login?Read=";
  $redirectURLtemp  = $redirectURLtemp . urlencode($fromBasedURL . $temppubItem-&gt;pub_name );
  $utcCurrentDate = gmdate ('Y-m-d');
  $md5Temp = $loginUsername . $utcCurrentDate . 'none' . $Secret;
  #error_log("string for md5=".$md5Temp);
  $md5Temp = md5($md5Temp);
  $redirectURLtemp = $redirectURLtemp . '&amp;Id=' . $loginUsername . '&amp;d=' . $utcCurrentDate . '&amp;r=none' . '&amp;c=' . $md5Temp;
  $temppubItem-&gt;redirect_url = $redirectURLtemp;
  error_log("list URL to choose.. ".$redirectURLtemp);
  $userCurrSubs[] = $temppubItem;
  };
  </code></pre>
  
  <p>Let's call the publications: GunsAmmo, FieldStream, and PsychologyToday.  (pub_name in the code above)</p>
  
  <p>GunsAmmo and FieldStream are working fine.  However, <strong>when someone selects PsychologyToday, they need to be sent to a completely different URL, like <a href="http://www.psychologytoday.com" rel="nofollow">http://www.psychologytoday.com</a> , and not have any of the login business above sent along with it.</strong></p>
  
  <p>(Even better, <strong>it would be preferable to have PsychologyToday NOT show up in the list at all, even if they're subscribed to it</strong>, but I suspect that would be a tougher nut to crack.)</p>
  
  <p>What's the best way to accomplish this?  Am not a programmer, so go easy.</p>