Hello, thank you for your quick reply.
So, is using elseif a more correct way of doing it instead of using separate if statements ?
Out of interest, in the example I gave before, would it go through each if statement to check it and if it didnt find a matching $ just have skipped past the header Location part to exit ?
Also I notice in your example you have for the header location part
PHP Code:
header("Location: ".$link);
which is diferent to how I had it in my example as
PHP Code:
header("Location: $link");
Was mine the wrong way of doing it or is there a better advantage to doing it the way you suggest?
Sorry for the newbieness of my questions but it would be cool if you or someone could explain the differences a little as to whats going on behind the code kind of thing.
Thanks again.
Bookmarks