I have an array that already contains all it's values in alphabetical order:
Alligator
Alpha
Bear
Bees
Banana
Cat
Cougar
up to Z Now I want hat when I get Input from my Html file for Example I write "Name" in the html input box then it should get split that into alphabet and give output like
N A M E
N A M E
A N A V
U N T I
G O U L
H Y R
T I E
Y N
G
In This way I must get Result with a image on background for image and text I used my Php code below but tried many time not getting the result the result should be in same manner in which I have shown My html code is:name.html
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form action="result.php" method="get">
<input type="text" id="name" name="myname" placeholder="E.g: abc">
<input type="submit" value="Submit">
</form>
</body>
</html>
My php code is: result.php
<?php
header('Content-type: image/jpeg');
$jpg_image = imagecreatefromjpeg('Desert.jpg');
$white = imagecolorallocate($jpg_image, 73, 41, 236);
$font_path = 'OpenSans-Italic.TTF';
$text = $_GET['name'] ;
imagettftext($jpg_image, 25, 0, 75, 50, $white, $font_path, $text);
imagejpeg($jpg_image);
imagedestroy($jpg_image);
?>