Hey guys, So i've made quite a simple script that merges 3 images: A logo, background, and some text.
<?php
session_start();
$Bg = ($_POST['bg']);
$Logo = ($_POST['logo']);
$Text = ($_POST['text']);
$bg = imagecreatefrompng('$Bg');
$fg = imagecreatefrompng('$Logo');
$Final = imagecreatefrompng('$Text');
$x = imagesx($bg);
$y = imagesy($bg);
imagecopy($bg, $fg, 0, 0, 0, 0, 728, 90);
imagecopy($Final, $bg, 0, 0, 0, 0, 728, 90);
header('Content-Type: image/png');
$UID = "test";
$Path = 'test/' . $UID . '.png';
imagepng($Final);
imagepng($Final,$Path,9);
imagedestroy($bg);
imagedestroy($fg);
imagedestroy($Final);
?>
Now this works fine but I'de like to create it so that users can upload the 3 images to merge, Is there anyway to link a script like this to a form? Thanks very much guys.