Redirecting to a particular page


#1

Hello everybody,

We have a link by clicking which a person can download a file. After downloading the file he remains on the same page. Now we want the person to be taken to a particular page after he finishes downloading. How can this be done?

Hope I am quite clear.

Thanks
Rini


#2

THe only thing I can think of that would let you redirect is using the HEADER() function with a new location. THis however will not work if any html has been sent to the output. (There are ways around that too, though.)

You can use MetaRefresh (which is HTML) or perhaps javascript might help too.

Good luck.


#3

if you dunno how to use the header location thing, the script you’ll want to input is:

header( “Location: http://www…” );

just so you know :)