Redirect...
| From: | Doug Coning | Date: | Mon, 10 Mar 2003 22:25:36 +0000 |
| Subject: | Redirect... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-139035@lists.php.net to get a copy of this message | ||
Hi all,
I'm running the below code to download a text file. After the save as
window comes up, I can correctly save the document. However, the browser
goes to a "Action Cancelled" error page.
Here's my code:
<?
header("Content-type: application/text");
header('Content-Disposition: attachment; filename="variables.txt"');
header('Content-Length: ' . strlen($send));
?>
Am I suppose to redirect the page after it saves the file, and if so how
would I do that?
Thanks,
Doug Coning