SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2008
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating pdf and uploading it to server

    I have simple form. The form contains two textbox. I want to convert it into pdf file and upload it to my server. Suppose whatever user has enter in that 2 textbox and when they click submit. The content will be written in pdf file and upload it to my server.

    Any idea regarding it?

    Thanks

  2. #2
    SitePoint Evangelist
    Join Date
    Jun 2006
    Location
    Wigan, Lancashire. UK
    Posts
    523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The content will be written in pdf file and upload it to my server.

    Any idea regarding it?
    To start with, get out of the habit of thinking that PHP is running on the client. It runs on the server, so it can only create a file on the server, so there is no upload involved at all.

    POST the form to a php script running on the server that uses any of the PDF libraries around to generate the file.
    ---
    Development Projects:
    PHPExcel
    PHPPowerPoint


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •