Hi everyone,
I'm relatively new to php and am trying to make it so that depending on the conditions, my users will be redirected to a particular page. I can figure out how to output text depending on conditions such as:
if ($row['email_addr'] == $addr && $row['gets_mail'] == 1) {
echo "You're already subscribed! :)<br><br><a href=$my_url>Go Back</a>";
exit;
}
Unfortunately, the echo string is just plain text, and I would prefer it pointing to a preset webaddress. It seems cleaner if I could do that rather than code the whole page into echo strings.
Also, I plan to have multiple redirect situations based on the situation on that page. So... if it is possible to do redirects like I'm wanting to, can I also set an array containing the list of webpages which will be used? Then, call upon the right variable at the appropriate portion of the script?
Thanks for any help.