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