Can PHP handle a PDF form submitted as a complete PDF document

后端 未结 2 1144
萌比男神i
萌比男神i 2021-01-25 01:50

In Short:

I have a PDF that customers can fill out. When they press the \"Submit\" button, I want to automatically send an email with the completed PDF

相关标签:
2条回答
  • 2021-01-25 02:19

    If your $_FILES array is empty, you probably are using wrong <form enctype=""> attribute value. Check if you have:

    enctype="multipart/form-data"
    

    This is required for form to allow sending files. Then you can use uploaded file and send it to the client, which seems that you are capable of.

    0 讨论(0)
  • 2021-01-25 02:34

    You can pull the raw PDF data from $GLOBALS['HTTP_RAW_POST_DATA']. You can output this to a file and open it as you would any PDF.

    0 讨论(0)
提交回复
热议问题