0

Hi there,

How can I ignore case sensitivity when people type in letters and get redirected through this script:

<?php 
if($_GET['username'] == "BBY"){
  header("Location: http://www.x.ca"); }
   elseif($_GET['username'] == "RS"){
  header("Location: http://www.x2.ca"); }  
   elseif($_GET['username'] == "WM"){
  header("Location: http://www.x3"); }  
   elseif($_GET['username'] == "RP"){
  header("Location: http://www.x4.ca"); }
   elseif($_GET['username'] == "SM"){
  header("Location: http://www.x5.ca"); } 
  else {
  header("Location: ../portal_failedattempt");
}

exit();
?>

Thank you! :)

4
Contributors
7
Replies
8
Views
5 Years
Discussion Span
Last Post by riseguim
0

Thank you very much for all your help!

Edited by riseguim

0

Actually it doesn't work. Can you please show it to me using my code as an example? I'm not quite advanced with PHP I'm sorry :s

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.