-Edward-
09-12-2007, 08:35 PM
Hi Folks,
Something is bugging me and I cannot seem to figure out (It's probably very easy but it's bugging me).
Take the following example:
url.php?gap=TNFXX
I want to grab the TNF from the URL and show a picture.
I've got various 3 letter combinations stored in an Array and if for example that 3 letter combination is in the URL it shows that image on that page.
Another example:
url.php?gap=FNFXX
If FNF is present it shows image 1.
url.php?gap=SMSXX
If SMS is present it shows image 2.
Can anyone help me? I've tried using str_replace but that doesn't seem to work for me once I use an if statement to jump between ?gap= and ?step=.
Hope that makes sense ive been looking at this for over an hour and cannot come up with any suitable code that works.
Something is bugging me and I cannot seem to figure out (It's probably very easy but it's bugging me).
Take the following example:
url.php?gap=TNFXX
I want to grab the TNF from the URL and show a picture.
I've got various 3 letter combinations stored in an Array and if for example that 3 letter combination is in the URL it shows that image on that page.
Another example:
url.php?gap=FNFXX
If FNF is present it shows image 1.
url.php?gap=SMSXX
If SMS is present it shows image 2.
Can anyone help me? I've tried using str_replace but that doesn't seem to work for me once I use an if statement to jump between ?gap= and ?step=.
Hope that makes sense ive been looking at this for over an hour and cannot come up with any suitable code that works.
