to do so I use CGI.pm module, $query = new CGI; ... don't insert header before the redirection!!! In such a case it don't work.
$query->redirect("THE URL"); that is't and is work fine. Denis -----Original Message----- From: Grierson, Garry (UK07) [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 4:26 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: browser redirection I seem to have got a little muddled yesterday, sorry. What I think you want is to be able to declare the "Content-type:text/html\n\n"; HTTP header type, so you can print some HTML etc. Then be able to automatically link to different pages (or print) based on variable values, in this case you can't use the 'Location' HTTP header type as you can only have one header per page. You can do the following using if statements or you can build theme into a case structure. print "Content-type:text/html\n\n"; #define current page print 'Local HTML or whatever!'; #do your stuff # define your variables if ($variable eq 'condition'){ #if condition to decide which page to redirect to print <<HTML_SCRIPT1; <HTML><HEAD> <meta http-equiv="REFRESH" content="0; URL={youre URL location}"> <meta http-equiv="Content-Type" content="text/html"; charset=iso-8859-1"> </HEAD><BODY link=@#0000A6@ vlink="#0000A6" alink="0000A6"></BODY> </HTML>> HTML_SCRIPT1 } else{ print <<HTML_SCRIPT2; # second HTML page same as above but with different URL location. HTML_SCRIPT2 } It's not very pretty but it will work. If anyone has a better approach to this I would also be happy to know how. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]