Код этого файла test.html
Код: Выделить всё
<html><body><form action="forie.php" method="post" target="_blank" > Введите текст: <input type="text" value="РУССКИЙ ТЕКСТ" name="text"> <input type="submit" value="Отправить"> </form> </body></html>
Код: Выделить всё
<?php // Create a 100*30 image$im = imagecreate(100, 30);$textimg1 = $_POST['text'];// White background and blue text$bg = imagecolorallocate($im, 255, 255, 255);$textcolor = imagecolorallocate($im, 0, 0, 255); // Write the string at the top leftimagestring($im, 5, 0, 0, $textimg1, $textcolor); // Output the imageheader('Content-type: image/png'); imagepng($im);imagedestroy($im);?>