I am currently creating a site where the user would fill out a form and upon clicking submit button.
The data entered by the user will both be sent to a database and used to fill-out the pdf version of the form.
This pdf version of the form will then be downloaded to the user's browser.
I've been searching for 2 days on how to do this, and I've come across PDFTK but the problem is I'll be hosting this site on a webhost and as far as I understand, you cannot install PDFTK on a shared server.
I'm only looking at free webhosts here. I've already written the php for saving to the database, I just can't figure out the pdf part.
Any suggestions on how I can accomplish this? Thanks in advance
Related
I'm trying to use a HTML/PHP form on my website. The problem is submit just opens a new page displaying my php as text, this is when I open the html file on my computer using Google Chrome. When I uploaded to my hosting service, TK dot com, I get a 405 error when using the form. I've tested on working/downloadable php forms and the same thing happens.
From my understanding, I can't just use php on my site without setting up an environment. I've read I need to use some sort of program to do this (apache). Which kind of confuses me further, how would I enable this type of service, which installs to my computer, to run on my website when my computer is off?
Any tips or guides on how to do use apache for PHP forms on my website or similar that I can be redirected to would be really helpful. Please let me know if any extra information is needed.
I have a website running on my own server, using PHP and Sliverlight.
I want to implement a function that when a user click a button, the server takes a screenshot of the page and saves the picture on the server. Note that user behavior will change the page.
I wonder how to solve this using php and javascript? Does wkhtmltopdf managr it ? Any idea is appreciate.
Ok, so I'm having this problem with an application I wrote in AS3 and PHP (Linked together using AMFPHP) and What happens is (Using a basic way of saying it) I retrieve data from a database and display it on the screen. I've done this many times before and it works on both the web and in Flash Pro. itself. The problem I'm having this time is that it works perfectly in Flash Pro. but when I upload it to my web host, it doesn't work and it shows a blank screen. Any suggestions? If you require any additional information please ask :)
I am dying trying to figure this out. Googled my heart off with no luck.
I am making a web application to print labels and it should be done through the browser. My webserver is LAMP so I cannot use the PHP_Printer because that is windows based.
Is there an alternative PHP solution for printing from a LAMP server to the client. (ie: Online server is LAMP and they will run the web app through their browser and will be printed to the clients printer).
Thanks for any help!
EDIT
So this turned out to be harder than expected. My solution is going to be to use http://www.fpdf.org/ to create a PDF using the user submitted variables. And I will add custom js to the pdf to print without dialogue box as soon as it is opened.
Workflow: User submits stock variables (Qty, Product Number) [Submit] -> Stock added to DB and PDF gets generated and auto printed for the label.
So here is my solution to the problem. I found it in another post here Can a PDF file's print dialog be opened with Javascript?
I will generate a PDF for the labels using FPDF and then add a script to auto print the pdf when its opened.
Script: http://www.fpdf.org/en/script/script36.php
Thanks for helping me think this through guys
Hi can someone tell me how to upload a file in this website http://hexserver.loria.fr from my web app ?
The thing is that you can see in the front page of the website there are two options for submitting molecules from my computer and then do docking...
So if I want to write such a script that will automatically upload the files in this website and then docking. the files will be in my mysql database.on submitting the files will be uploaded in this website.how to do it?
Any pointer towards solving this problem will be really helpful.
It's just a simple form you may use php or .net
Like;
http://wezfurlong.org/blog/2006/nov/http-post-from-php-without-curl/
and if you'are linux user you may add this to cron. Just learn form names.