I want to change the possibility to get the answer of the value in the input in this form (to provide the russian word for a number) from the submit-Button to a dynamic AJAX-function to get the answer instantly.
Thank you !!!
With the help of @user1978142 it works perfectly. But now I search for a solution to add a Play-Button, which spellout the word with Google TTS (Text-To-Speech) I find a solution for Google TTS, but it only works on Google Chrome.
<?
$ru = new NumberFormatter("ru", NumberFormatter::SPELLOUT);
?>
<form method="get" action="index.php">
Zahl:
<input name="zahl" type="text" size="15" maxlength="15">
<input type="submit" value="Anzeigen">
</form>
<?
if (is_numeric($_REQUEST['zahl'])) echo $ru->format($_REQUEST['zahl']);
?>