ODBiC Discussion Board


REDIRECT not working

by Adrian Fitton, May 29, 2009 06:42

Hello there,

I've got a problem with the REDIRECT command, I wondered if anyone can spot some flaw in my code (I can't!).. It would be a great help if anyone can shed some light on this for me :-)

basically, this code makes something similar to a two dimensional array ("array[X][Y]") and utilising the $var() function to then loop through the values. When a value is matched, a redirect occurs. (but it seems to fail).

CODE :

<%SET array00 = "google";SET array01 = "[REDIRECT_URL]";SET arrayUbound = 0;
WHILE match($query_string$,"/");SET query_string_trim = $split(query_string, "/");ENDWHILE;
SET i = 0;
WHILE $i$ <=$arrayUbound$;
	if $var(array$i$0) = $query_string$;
		REDIRECT $var($eval(array$i$1));
	endif;
ENDWHILE;%>


Replies:


Post Your Reply:

Name   
E-mail  optional
Topic  
Message:

HTTP Link: 
Link text: 

          


Copyright ©1997-2003, Roger Harris. All rights reserved.