Mam taki problem, chcę zrobić tak że wpisuje na stronie tekst i wybieram sobie obrazek i na tym obrazku pojawia się teskt wpisany na stronie...
Generator obrazków mi działa...
Ale jak wybieram obrazek i wpisuje tekst i klikam wyśli wywala błąd...
Zawartość HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body { background: #262626; } </style> </head> <body> <center> <div id="top"> <img src="images/top.png" alt="Logo" /> </div><!--End top--> <br /> <br /> <div id="wyb"> <img src="images/wybierz.png" alt="Wybierz" /> <form action="test.php" method="GET" /> <br /> <input type=submit value="Wyślii" /> </form> </center> </body> </html>
Zawartość test.php:
<html> <head> <title>Wynik</title> </head> <body> <br>Wybrałes: <?php switch($_GET['sygnatura']) { case "1"; break; case "2"; break; case "3"; break; case "4"; break; case "5"; break; } ?> </body> </html>
I Generator:
<?php $img_number = imagecreatefrompng('tlo.png'); $textcolor = imagecolorallocate($img_number,255,255,255); Imagestring ($img_number,3,163,15, $_GET['nick'] ,$textcolor); imagepng($img_number); ?>
Myślę ze coś zrozumieliście wiem, że pokręciłem ale w php dopiero "raczkuje"
