0
I am trying to develop a simple badge generator that can receive 3 images 1° background, 2° employee photo, 3° company logo that way currently, and present employee name and your sector. Currently I can with some classes put employee name and sector 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>
Okay, but what’s the problem?
– Woss
Show images via POST and together in one
– Mateus
Edit your post and put what problem you are having! please!
– RFL
show the images I selected in input type=file and together in jpg only
– Mateus
What do you mean together? One on top of the other? One on the other?
– LocalHost
Yes on each other.
– Mateus
Making a file only
– Mateus
Currently I can with some classes put employee name and sector to send via POST and display all in one image. You are already able to do this, by what you said in the question. Can you rewrite it better? It seems that she is very confused.
– Woss
I said what I could do that would put texts in the image via POST, $name = $_POST... and to receive the file $image = $_FILE, so I can’t display the image I upload in html, I can only show the text with string, is confused because I do not understand the subject and I can not explain, but practically the project is a member card generator this is "badge" only without using BD
– Mateus