Hi have the following function
function renderBusinessCard($details){
//Getting the template for the business card
$filename = Templates::mod
It may be better to keep the $details array in session data if it's not too big. Then calling will call the script and associate the correct details data.
You need to render the image in a separate resource. There is no good way of adding the image data inside the HTML document. (Anybody thinking of recommending data:
URIs: It's a terrible idea.)
<img src="renderBusinessCard.php?param1=1¶m2=2">