Wszystko dobrze tylko, że jak mam kilka okienek do wpisania tekstu to jak klikne dodaj to od razu przechodzi do obrazka jak zrobic żeby możnabyło dodawać kilka tekstów naraz
EDIT
Dobra poradziłem sobie już wiem jak wpisywać kilka tekstów naraz, ale gdy klikam dalej to nic na obrazku się nie pokazuje :/
Tu są kody mojej pracy
<form action="image.php" method="post"> <input type="text" name="imgImie" id="imie" /></br></br> <input type="text" name="imgLvl" id="lvl" /></br></br> <input type="text" name="imgKla" id="kl" /></br></br> <input type="text" name="imgSta" id="st" /></br></br> <label for="txt">Pozycja w ratuszu(np.sołtys jeśli nie masz wpisz brak):
</label> <input type="text" name="imgPoz" id="poz" /></br></br> <input type="submit" value="Dodaj!" />
image.php
<?php
function LoadJpeg($imgname)
{
$im = @imagecreatefromjpeg($imgname); /* Attempt to open */
if (!$im) { /* See if it failed */
$im = imagecreatetruecolor(150, 30); /* Create a black image */
$bgc = imagecolorallocate($im, 255, 255, 255);
$tc = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 150, 30, $bgc);
/* Output an errmsg */
imagestring($im, 1, 5, 5, "Error loading $imgname", $tc);
}
return $im;
}
header("Content-Type: image/jpeg"); $img = LoadJpeg("tlo.jpg");
imagejpeg($img);
$imie = $_POST['imgImie'];
$lvl = $_POST['imgLvl'];
$kl = $_POST['imgKla'];
$st = $_POST['imgSta'];
$poz = $_POST['imgPoz'];
$background_color = imagecolorallocate($img, 0, 0, 0);
$text_color = imagecolorallocate($img, 255, 255, 255);
imagestring($img, 2, 111, 32, $imie, $text_color);
imagestring($img, 2, 66, 79, $lvl, $text_color);
imagestring($img, 2, 158, 78, $kl, $text_color);
imagestring($img, 2, 45, 119, $st, $text_color);
imagestring($img, 2, 324, 137, $poz, $text_color);
imagepng($img);
imagedestroy($img);
?>
EDIT 2
A może trzeba podać rozmiar czcionki i styl czcionki? Jeśli tak to powiedzcie jak to zrobić bo nie wiem

EDIT
Temat do zamknięcia problem rozwiązany