Sorry maybe the title isn't very clear on what I try to get done.
Let me explain. I have a html page on which I have a button, as soon as I click the button, a php page should be run (in background). This page generates (from a database) a canvas and that canvas is turned into an encoded image (base64) and this is added to the img source of that php page (this works). Now what I want is to get that img source and display it on the html page (where the button is).
Let me know if you need any sample code.
I hope someone can help me with this. Thanks
From the little code you posted, I would think it would look something like this, allthough not sure?
You'll probably have to style and position the input tag, or replace with a div, or whatever you like really, just use innerHTML or something similar instead of value.