I'm working on a project a little special and I have to insert an excel form on a web page so that users can fill it online and then on submit it have to be sent by email (as attachment or form) to the recipient of the form.
The company has no skydrive and the form must be an excel and not an HTML form.
Does anyone have an idea?
Thanks all !
I'm the creator of Appizy (http://appizy.com) that aims at converting Excel files into dynamic webapp. If I get it well you could generate your HTML form based on Excel Spreadsheet with Appizy.
Then you "just" need to plug a submit button to the generated webapp to send the data by email.
PHPExcel seems to offer a fully fledged engine for PHP (including calculating ability).
There doesn't seem to be any clear cut examples of how to interact with it via a webpage however.
Related
I am currently developing a web app using PHP. At first, User will fill in a form then submit the data to database, this info will display in Admin page. The Admin has to view the content of the form and do verification job.
Previously, after User fill in data, I convert the form to PDF using FPDF library and save the PDF in database instead. Now, I am developing the web app under AWS services. I wonder if there is any better option to do the job.
Should I save the form data in different columns or convert them to pdf before inserting into database (MySQL)? Is FPDF a good option to convert? Or there is any other library?
Thank you.
I want to provide a PDF with a form on my Website. It is integrated with an iFrame. When the user has filled it out, it should be save with the user fillings (not empty) on a directory of my Webspace. Is there an elegant solution to this possibly using PHP? Thanks.
No.
Because you can't control what browser is used, you can't control what PDF viewer is used to fill the form. Some embedded PDF viewers won't even be capable of filling form fields. My recommendation is to collect the data using standard HTML, then populating the form using any one of the several PHP libraries that can populate PDF forms, then present that to the user and have them sort of "approve" it, at that point, you save it to your Webspace.
That said, there are solutions like Adobe Sign that will convert the PDF to and HTML5 rendition that allows you to fill the form in any browser then retrieve the data and/or a static PDF for storage on your Webspace.
I recently have a project, I am creating a booking system.
there's only one thing that I need to do to finish it.
I want my web form to be converted into a dynamic PDF file.
Means, when a user makes a booking, he will fill up the web form, after all fields are filled up, it will be saved to the database and the web form will be converted to PDF that will be email to the client's email address.
Is there a plug-in that I need to use? How can I make my form be converted to PDF and be sent to user??
If there is, can you kindly give me a link to it?
I would gladly appreciate any help from you guys.
Thanks
You can use the libary TCPDF to accomplish this. The libary can create a PDF from HTML including HTML forms. Look at this example, it will help you farther:
PDF Example: http://www.tcpdf.org/examples/example_014.pdf
PHP tutorial of PDF example: http://www.tcpdf.org/examples/example_014.phps
Download link of TCPDF: http://sourceforge.net/projects/tcpdf/files/
So I am given a task to make this possible it if it. We have a website where there are forms available for grabs and print. Now the supervisor wants it if its possible that the agents when grabbing the form, doesn't need to print the form. But just fill up from there and submit the form thru PDF again with details already in it. Is this possible with PHP?. I am attaching on of the forms.
https://docs.google.com/file/d/0B3yAPZizyWCCYWkwWHdrdzBBdFU/edit?usp=sharing
Why would you need to use PHP at all? You can make editable pdf forms. I've downloaded the attached form and, unfortunately, this is not already editable but reconverting them to editable PDF is easy. The most common solution to convert standard pdf to editable pdf forms is acrobat: the guide to do so is here. However, you may find some free or ad-supported services which allow you to do the same thing on the internet. With some googling I've found pdfescape.com. Try to create a new document in pdfescape.com and, under the "insert" menu, choose "Form Field". That's it: you've just added an editable field to your page. Now click the "Save and Download" icon.
Once you've done with converting your pdf document from static to editable, you can distribute the pdfs to the agents and they can compile and save the form with free programs. On Mac OSX I can do that with the default image viewer. On Windows you'd probably need Acrobat. Still, they'll be able to download the pdf, compile the form, save and submit back the compiled form.
If you really want to do this with PHP, have a look at the documentation and try to figure out yourself how much time such a task would require, considering you should tell PHP where exactly to write text (in pixels) on the form and handling all exceptions (such as too long text) yourself. Here.
Also, doing that in PHP would require you to parse the pdf file into php and THEN create a new pdf out of it. Good luck doing that!
This is definitely possible. You'll have to be careful about the security (since you're passing tax ids), and you'll need to let the users know that they'll have to use Adobe Acrobat Reader to submit their completed form.
On the form itself use Adobe Acrobat Pro to create custom form fields.
Set the document to allow saving in Acrobat Reader
Create a button in Acrobat Pro on the document to submit the entire PDF as a PDF file to your server. Here's a link explaining how.
On the server where you want the PDF to go, then you would install a trusted certificate from a CA. This should allow transmission through SSL from Acrobat.
Additionally once the user has completed their form you can supply a link where they can upload the form through SSL (if they don't want to use Acrobat to complete the fields). (An example might be someone printing out the file to sign it.)
You can also set the file up to send as an HTML post as well. You would need to work out the legal aspects of using a signature for this though.
Remember that e-mail is not secure, so having users submit a completed form through e-mail could compromise their identity.
1)if i open the pdf form in browser ,am not able to get the post of pdf form in my phpscript
2) if i open the form in adobe acrobat then am getting the post in $_POST variable..
below is the my php script..
According to me $_POST varibale is not working when opening the form in web browser..
<?php
include "connection.php";
echo '<pre>'; print_r($_POST); echo '</pre>';
$sql = "INSERT INTO persons (name, city, state, country)VALUES('".$_POST["name"]."','".$_POST["city"]."','".$_POST["state"]."','".$_POST["country"]."')";
if($conn->query($sql) === TRUE)
{
echo "New record created successfully";
}else
{
echo "Error: " . $sql . "<br>" . $conn->error;
}
?>
I have some report that is generated from a form. I need this form to be saved automatically on the server, on submitting. Is there any way to do it?
I tried researching on the subject, but Google just throws up links where the user gotta input the URL and press submit or such method. As this pdf should be generated and saved automatically after every form submission, I guess the preferable method would be to call a service or such to generate the PDF and then save it on the server. Can you plz give me a walk-through.Thanks in Advance.
I'm working in PHP.
Here is the pdf docs from php.net. It's all there for the taking. Good luck!
PDF - Manual
I am about to embark on the same journey as I need to create a script to turn a document into a .pdf file using PHP. I don't know a lot about it yet, but it does seem possible. Try this link for starters...
http://www.sitepoint.com/generate-pdfs-php/