Witam!
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"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> body {
background: #262626;
}
<img src="images/top.png" alt="Logo" />
<img src="images/wybierz.png" alt="Wybierz" />
<form action="test.php" method="GET" /> <input type=text name="test" /><br> <input type=radio name=wyb value="1" /><img src="images/1.png" alt="test" /><br><br> <input type=radio name=wyb value="2" /><img src="images/1.png" alt="test" /><br><br> <input type=radio name=wyb value="3" /><img src="images/1.png" alt="test" /><br><br>
<input type=submit value="Wyślii" />
Zawartość test.php:
<html>
<head>
<title>Wynik</title>
</head>
<body>
<br>Wybrałes: <?php switch($_GET['sygnatura']) {
case "1";
echo "<img src='http://localhost/~php/sy.php?nick="$_GET['test']" />"; 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);
header("Content-type: image/png"); imagepng($img_number);
?>
Myślę ze coś zrozumieliście wiem, że pokręciłem ale w php dopiero "raczkuje"
Ten post edytował PanDrut 14.03.2010, 20:20:43