FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » download a file after user enters some data in php
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: download a file after user enters some data in php [message #179403 is a reply to message #179400] Tue, 16 October 2012 16:46 Go to previous messageGo to previous message
Michael Vilain is currently offline  Michael Vilain
Messages: 88
Registered: September 2010
Karma:
Member
In article <79a88c4d-32a2-4545-86d3-02ec367f365f(at)googlegroups(dot)com>,
Nagender <nagender(dot)goldenslash(at)gmail(dot)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]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: test
Next Topic: Code "folding" in NetBeans IDE 7.2
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 12:03:02 GMT 2024

Total time taken to generate the page: 0.03980 seconds