> ok, i wouldn't mind using javascript but I don't know how it would tie in
> with my scripts.
You'd just have the script print the javascript to the browser.
if ($cookie_and_goodvalues) {
   print qq[Here's the membership links...];
} else {
print <<HTML;
<script language="javascript" type="text/javascript">
<!--
window.location.replace("login.shtml");
-->
</script>
HTML
}

BTW,
Can you get cookie values when using SSI? I know you can't send them, but am
not sure if you can retrieve them.

Best Regards,
JOSHUA D. HAYDEN

----- Original Message -----
From: "Mat Harrison" <[EMAIL PROTECTED]>
To: "Joshua Hayden" <[EMAIL PROTECTED]>; "Beginners CGI Perl
Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, April 28, 2002 1:08 PM
Subject: RE: ssi and redirects


> ok, i wouldn't mind using javascript but I don't know how it would tie in
> with my scripts. I want this cgi include to scan for a cookie, check the
> values etc and either print the membership links or redirect to the login
> page.
>
> -----Original Message-----
> From: Joshua Hayden [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 28, 2002 3:37 PM
> To: Beginners CGI Perl Mailing List
> Subject: Re: ssi and redirects
>
>
> It doesn't work because the HTML Content-type has already been sent to the
> browser when it started load the .shtml page. You could use javascript.
> <script language="javascript" type="text/javascript">
> <!--
> window.location.replace("redirectpage.htm");
> -->
> </script>
>
> Some people are afraid do use javascript because old browsers don't
> understand it. If someone has a browser that old, I don't really want them
> on my site anyway.
>
> Best Regards,
> JOSHUA D. HAYDEN
>
>
> ----- Original Message -----
> From: "Mat Harrison" <[EMAIL PROTECTED]>
> To: "Beginners CGI Perl Mailing List" <[EMAIL PROTECTED]>
> Sent: Sunday, April 28, 2002 5:45 AM
> Subject: ssi and redirects
>
>
> > i have a simple redirect and included it using #exec cgi in an html
page.
> > when i exec the page, i't doesn't redirect, instead it prints a link to
> the
> > redirect target.
> >
> > how can i make a script redirect using SSI?
> >
> > --
> > Matthew Harrison
> > Webmaster
> > www.genestate.com
> > [EMAIL PROTECTED]
> >
> >
> > --
> > 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]
>
>
>
>
> --
> 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]

Reply via email to