Hi, I'm looking for a code that does the following: When a user inserts a text in an input field, and presses "Submit", it should show images predefined by me for each symbol. Kinda like those Myspace Generators, but I'll use a seperate image for each symbol, and it should generate a HTML code too. So, for example, a user inserts: Good morning and it should display the following: etc. etc. Is this easy to achieve, or are there similar scripts available? I'm willing to pay if it does exactly what I need, but it would be even better when it's free. Thanks!
Assuming your text input field is named 'text' and your form method is 'post': <?php $text = $_POST['text']; $images = ""; for($i=0; $i<strlen($text); $i++) { $images .= '<img src="' . $text[$i] . '.jpg" />'; } ?> PHP: Then you just print $images; somewhere or <?=$images?> wherever in your HTML you want the images to go. Make changes as needed.