[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

PDF attachment thru mail using php

Posted on 2009-04-11
5
Medium Priority
?
538 Views
Last Modified: 2012-05-06
I have a pdf form, which users can fill online, now i want that when users click submit on the form it should send the pdf with the filled data as attachment.
Please guide on what php script to b written for this process.

thanks.
0
Comment
Question by:Desire2change
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

by:EMB01
ID: 24122106
I'll need to see you PDF submission script. Then, we'll make that script write to a PDF file (if it doesn't already). And; finally, we'll send the PDF as an attachment via email.
0
 

Author Comment

by:Desire2change
ID: 24124719
I don't have any pdf submission script, I just have a pdf form.
0
 
LVL 14

Expert Comment

by:EMB01
ID: 24125514
Is there currently a submit button on the PDF form?
0
 

Author Comment

by:Desire2change
ID: 24268226
actually , i have not yet prepared the form, i want an idea on how to move forward to it, my idea is there will b a pdf form, i will fill it, then click on submit button , then it should send that filled form as attachment to my mail
0
 
LVL 14

Accepted Solution

by:
EMB01 earned 2000 total points
ID: 24269085
I don't believe you can submit via a .PDF form. If you can do this; I'm not sure how to do it. However, I know how you can have users submit an online form, then generate a .PDF and send it via email as an attachment. To do this, please review these steps:

1. Create the form on a PHP page (we'll call this page A)
2. Submit data from form to another PHP page (we'll call this page B)
3. On page B, create a script at the top of the code that uses the POST data from the previous page
    - Make code secure with server-side input validation
    - Create .PDF document via PHP's PDF functions; or, check out the free FPDF PHP class here:
      http://www.developertutorials.com/tutorials/php/easy-pdf-generation-in-php-8-02-27/page1.html

Please let me know if you have any questions.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question