Re: Javascript and PHP??
| From: | Jamie Watt | Date: | Thu, 04 Apr 2002 00:46:50 +0000 |
| Subject: | Re: Javascript and PHP?? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91446@lists.php.net to get a copy of this message | ||
<?php header("Location: $csv_filename"); ?>
"Mikhail Avrekh" <misha@pnin.lbl.gov> wrote in message
news:Pine.LNX.4.31.0204031531140.2347-100000@pnin.lbl.gov...
> You can say something like:
>
> <?$csv_filename= "whatever.csv";?>
> <script language=javascript>
> window.open("<?=$csv_filename?>",
> "target",
> "resizable,status,width=500,height=200");
> </script>
>
>
>
> On Wed, 3 Apr 2002, Joe Keilholz wrote:
>
> > Hello All!
> >
> > I think this is a pretty simple question. I have a file that I am
writing
> > information to and when the process is complete, I am needing to send
the
> > file to the user. In Javascript all I would need to do is window.open()
and
> > the file would be sent to the user (it's a .csv file). How would I
> > accomplish this in PHP? Can I incorporate Javascript into my PHP code?
If
> > so, how?
> >
> > Any help would be appreciated!
> > Thanks!
> > Joe Keilholz
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>