Redirecting User Depending on Input

Discussion in 'PHP' started by oninuva, Aug 9, 2012.

  1. #1
    I am looking for a plugin where a user can enter a code and depending on what their code matches up with, it will redirect them to a set URL.

    Is there such plugin that can help me out?


    For example, a user enters code "A" into the text box. It will take them to the URL identified with code "A".

    By the way I use wordpress but if not, is there a script that can do this for me? Thanks
     
    oninuva, Aug 9, 2012 IP
  2. khalonn

    khalonn Greenhorn

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    You can even do this in Javascript, no need to send data back to the server. Just use an "if" construct - if the input is 'A', redirect to the A URL, else if the input is 'B;, redirect to the B URL, else ...
     
    Rukbat, Aug 10, 2012 IP