By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,359 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

Hmm...

P: n/a
rk
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("Location: http://file.zip"); How
do I redirect to the thank you and do the Header("Location:... 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.

Jul 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

"rk" <pl****@no.email> wrote in message
news:Gb**************@fe01.atl2.webusenet.com...
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("Location: http://file.zip"); How
do I redirect to the thank you and do the Header("Location:... 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.


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.
Jul 16 '05 #2

P: n/a
sam
Please use a descriptive subject.

"rk" <pl****@no.email> wrote in message
news:Gb**************@fe01.atl2.webusenet.com...
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("Location: http://file.zip"); How
do I redirect to the thank you and do the Header("Location:... 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.

Jul 16 '05 #3

P: n/a
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:

"rk" <pl****@no.email> wrote in message
news:Gb**************@fe01.atl2.webusenet.com...
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("Location: http://file.zip");
How do I redirect to the thank you and do the Header("Location:... 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.


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.


--
BOFH Excuse #416:

We're out of slots on the server

Jul 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.