Hmm...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rk

    Hmm...

    I have a php script, I post a form to it. I check the data, then I want to
    display a thank you page and do a Header("Locatio n: http://file.zip"); How
    do I redirect to the thank you and do the Header("Locatio n:... in the same
    php script????????

    Some, guys say in related threads that the double redirect isn't needed
    'cause you won't see the first redirect. But, if the second redirect is to a
    file with a ".zip" extension then the download dialog will be displayed. So,
    the first redirect will be seen.



  • Randell D.

    #2
    Re: Hmm...


    "rk" <please@no.emai l> wrote in message
    news:GbS5b.554$ h5.388@fe01.atl 2.webusenet.com ...[color=blue]
    > I have a php script, I post a form to it. I check the data, then I want to
    > display a thank you page and do a Header("Locatio n: http://file.zip"); How
    > do I redirect to the thank you and do the Header("Locatio n:... in the same
    > php script????????
    >
    > Some, guys say in related threads that the double redirect isn't needed
    > 'cause you won't see the first redirect. But, if the second redirect is to[/color]
    a[color=blue]
    > file with a ".zip" extension then the download dialog will be displayed.[/color]
    So,[color=blue]
    > the first redirect will be seen.
    >
    >
    >[/color]

    Perhaps you could try a metatag refresh so the call to file.zip kicks in
    after a second or two...

    If that doesn't help you out, I suggest a repost but using a more
    descriptive subject line.


    Comment

    • sam

      #3
      Re: Hmm...

      Please use a descriptive subject.

      "rk" <please@no.emai l> wrote in message
      news:GbS5b.554$ h5.388@fe01.atl 2.webusenet.com ...[color=blue]
      > I have a php script, I post a form to it. I check the data, then I want to
      > display a thank you page and do a Header("Locatio n: http://file.zip"); How
      > do I redirect to the thank you and do the Header("Locatio n:... in the same
      > php script????????
      >
      > Some, guys say in related threads that the double redirect isn't needed
      > 'cause you won't see the first redirect. But, if the second redirect is to[/color]
      a[color=blue]
      > file with a ".zip" extension then the download dialog will be displayed.[/color]
      So,[color=blue]
      > the first redirect will be seen.
      >
      >
      >[/color]


      Comment

      • Dirk Engels

        #4
        Re: Hmm...

        First do the header redirect to the thanks page. I think if you include
        another redirect header in the thanks page. you can download the zip file
        and let the thanks page on the page.

        Dirk


        Randell D. wrote:
        [color=blue]
        >
        > "rk" <please@no.emai l> wrote in message
        > news:GbS5b.554$ h5.388@fe01.atl 2.webusenet.com ...[color=green]
        >> I have a php script, I post a form to it. I check the data, then I want
        >> to display a thank you page and do a Header("Locatio n: http://file.zip");
        >> How do I redirect to the thank you and do the Header("Locatio n:... in the
        >> same php script????????
        >>
        >> Some, guys say in related threads that the double redirect isn't needed
        >> 'cause you won't see the first redirect. But, if the second redirect is
        >> to[/color]
        > a[color=green]
        >> file with a ".zip" extension then the download dialog will be displayed.[/color]
        > So,[color=green]
        >> the first redirect will be seen.
        >>
        >>
        >>[/color]
        >
        > Perhaps you could try a metatag refresh so the call to file.zip kicks in
        > after a second or two...
        >
        > If that doesn't help you out, I suggest a repost but using a more
        > descriptive subject line.[/color]

        --
        BOFH Excuse #416:

        We're out of slots on the server

        Comment

        Working...