I've been having a play around with this to see if I can make it do what you want, but at the moment my stumbling block is that I cannot get your original code to actually change the style...until that works, there isn't much point me tweaking the rest to make it do as you describe.
It seems to call the file ok as it redirects to ../index.php afterwards, but it's not actually changing the style.
|