Parašė Kelmas· 2010 Vas. 4 23:02:47
#4
<?php
// Dragelis by webdnd.com
if (isset($_POST['print_edit_text'])) {
$text = str_replace(" ", ", ", $_POST['text']);
echo "<tr>
<td class='tbl'><strong>Rezultatas:</strong><br />
<textarea rows='14' cols='140' style='width:98%' readonly>$text</textarea></td>
</tr>\n";
}
echo "<table align='center' width='100%' cellpadding='0' cellspacing='0'>
<form name='inputform' method='post' action=''>
<tr>
<td class='tbl'><strong>Tekstas:</strong><br />
<textarea name='text' rows='14' cols='140' style='width:98%'></textarea></td>
</tr>
<tr>
<td align='center' colspan='2'><br />
<input type='submit' name='print_edit_text' value='Konvertuoti'>
</td>
</tr>
</form>
</table>\n";
?>
Žiaurus kodas, bet pradžia padaryta.