On Sat, 2 Jun 2001, Mark Mogridge <[EMAIL PROTECTED]> wrote,

> Date: Sat, 02 Jun 2001 03:26:52 +0400
> From: Mark Mogridge <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Redirecting after creating cookies - I can't!
>
> Hi there!
>
> Redirecting after creating cookies - I can't!
>
> I can create cookies... print
> header(-cookie=>[$clubid,$membername,$pointsbal]);
> Thatıs fine
>
>
>
> I can redirect...  print "Location: $gotourl";
>                            OR
>                            print redirect("$gotourl");
> Thatıs fine ­ but NOT if I create cookies first.  ($gotourl does have \n\n
> at the end of the url)
>
>
>
> I tried putting the two together as in ...  print
> header(-cookie=>[$clubid,$membername,$pointsbal] , redirect($gotourl));
> It almost worked ­ but the url came out in CAPS so it wasnıt recognised by
> the browser.

You want to put then together in the redirect(),

    print redirect(
             -uri => $gotourl,
             -cookie => [$clubid,$membername,$pointsbal],
          );


s.a.n
-- 
Hasanuddin Tamir: [EMAIL PROTECTED] - Trabas: www.trabas.com

Reply via email to