I am using php and html and i am trying to make two buttons:
- Print button: that print a specific picture (not the whole page)
- Download button: which will display the save as window to save a picture.
Do you know if this is possible and how, should it be done?
<form><input type="button" value="Download" onClick="window.location.href='your link'"></form>
You must use HEADER with proper MIME type to prompt the download immediately when you click the download button. The above @tyson567 methods just send you the new page where the image located, it'll not prompt you to download the image when you reached that page. Here is the example for method 1. The method 2 can be done with Javascritp or jQuery plugin. You just need to google for that.
thankyou both for your help. it worked for me.
Solved ? Marked it as Solved then.
I want to fetch invoice data from two tables
table a is in single row and table b data should be multiple rows
single data is fetching correctly but facing ...
I know this question is a lot easier than it seems, but I can't seem to get around it.
This is my current code and I cannot get it to ...
can i perform biometric process in php language if this is possible ,please give me some suggestion,..
if this is not possible then tell me how integrete c# or java ...