Upload images by php form and display together in a single image

0

I am trying to develop a simple badge generator that can receive 3 images 1st fund, 2nd employee photo, 3rd company logo in this way currently, and present the employee's name and their sector. Currently I get some classes to put the employee and sector name to send via POST and display all in one image.

<?php
header("Content-type: image/jpeg");
$nome = $_POST['nome'];
//$fundo = $_POST['fundo'];

$imagem = ImageCreate(300,100);
$roxo = ImageColorAllocate($imagem, 150, 0, 50);
$branco = ImageColorAllocate($imagem, 255, 255, 255);
ImageString($imagem, 18, 10, 5, "$nome", $branco);
Imagejpeg($imagem);
ImageDestroy($imagem);

?>

<html>
<head>
	<title>Criador de Cracha</title>
   <meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<form method="post" action="php.php">
   <input type="text" name="nome" placeholder="Nome Completo do Funcionario">
   <input type="text" name="nomeab" placeholder="Nome Abreviado">
   <input type="text" name="data" placeholder="Data de Admissão">
   <input type="text" name="setor" placeholder="Setor">
   <input type="text" name="cod" placeholder="Código Funcionario">
   <br>
   Selecione o fundo: <input name="file" type="file" />
   <br />
   Selecione png do funcionario: <input name="png" type="file" />
   <br />
   Selecione logo da empresa: <input name="png" type="file" />
   <br />
   <input type="submit" value="Gerar" />
</form>
</body>
</html>
    
asked by anonymous 11.04.2017 / 15:42

0 answers