Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7335

Re: download a file after user enters some data in php

From Michael Vilain <vilain@NOspamcop.net>
Newsgroups comp.lang.php
Subject Re: download a file after user enters some data in php
Date 2012-10-16 09:46 -0700
Organization DexLabs, Inc.
Message-ID <vilain-60A269.09463516102012@news.individual.net> (permalink)
References <79a88c4d-32a2-4545-86d3-02ec367f365f@googlegroups.com>

Show all headers | View raw


In article <79a88c4d-32a2-4545-86d3-02ec367f365f@googlegroups.com>,
 Nagender <nagender.goldenslash@gmail.com> wrote:

> Hi to all,
> In my working website user has to download a pdf file once he submits some 
> information.
> No hyperlinks has to show directly file has to download.
> 
> I have the idea using hyperlink, that means once user enter details ,it will 
> redirects to another page.
> this is not case.
> It has to download there it self.
> 
> Please any one has idea, let help me.
>  I am searching for this since  last 4-5 hr's.

I'm not sure, based on your broken english, what you're trying to do.

You have a form that the user fills out.  Then clicks SUBMIT.

And you want that form to download a PDF file to the user's browser?  Or 
do you want to display a page that has a link where the user can 
download the PDF file?  Or something else?

Doing an automatic download is pretty simple once php has control of 
interaction, which it will after you click SUBMIT.  Send the proper 
header, mime-type, then open the PDF file you want to send and output it 
to the browser as a binary file.

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

download a file after user enters some data in php Nagender <nagender.goldenslash@gmail.com> - 2012-10-16 07:21 -0700
  Re: download a file after user enters some data in php The Natural Philosopher <tnp@invalid.invalid> - 2012-10-16 15:27 +0100
  Re: download a file after user enters some data in php Jerry Stuckle <jstucklex@attglobal.net> - 2012-10-16 12:15 -0400
  Re: download a file after user enters some data in php Michael Vilain <vilain@NOspamcop.net> - 2012-10-16 09:46 -0700
    Re: download a file after user enters some data in php Nagender <nagender.goldenslash@gmail.com> - 2012-10-17 03:46 -0700

csiph-web