the idea on what im doing is like a converter, like showing what your name would look like with certain images per letter, when you input text (your name for example) and when you press the submit button you would get a series of images in a row that represent each character that you typed.
here is the example that i did...
<html><?php if(isset($_POST['Translate'])) {$image = array( 'a' => 'a.png', 'b' => 'b.png', 'c' => 'c.png', );$char = $_POST["ConvertEng"];for ($i=0; $i<strlen($string); $i++) {?>Character: <?php echo $char[$i]; }?><br /><br /><img src="<?php echo $image[$char]; ?>" alt="Images for the '<?php echo $char ?>' character."/><br /><br /><?php } ?> <p style="text-align: center;"> <form action='convert.php' method ='POST'><table border="2"><tr><td>Convert English into images :</td><td><input type="text" name="ConvertEng" size"20"></input></td></tr></table><input type="submit" name = "Translate" value = "Translate"></form> <p></html>
so far this works on 1 character 1 image only , BUT how would i correct this coding by getting the whole text(more than 1 character in the inputed text) into their correct sequence of images...