Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<div align="center">
<form name="form1" method="post" action="">
<input type="text" name="text">
<input type="submit" name="Submit" value="Превод">
</form>
</div>
<?php
$text = $_POST['text'];
$english = array('box', 'window');
$bulgarian = array('кутия', 'прозорец');
$text = str_replace($english, $bulgarian, $text);
echo "$text";
?>
<form method="POST" action="">
<textarea rows="10" name="text" cols="56"></textarea>
<input type="submit" value="submit" name="B1">
</form>
<?php
$text = $_POST['text'];
if($_POST['text'])
{
$english = array('box', 'window');
$bulgarian = array('кутия', 'прозорец');
$text = str_replace($english, $bulgarian, $text);
echo "$text";
}
?>
<div align="center">
<form name="form1" method="post" action="">
<input name="lang" type="radio" value="bg" checked>
БГ
<input name="lang" type="radio" value="en">
EN<br>
<input type="text" name="text">
<input type="submit" name="Submit" value="Превод">
</form>
</div>
<?php
$lang = $_POST['lang'];
$text = $_POST['text'];
$english = array('box', 'window');
$bulgarian = array('кутия', 'прозорец');
if ($lang == "bg")
{
$text = str_replace($english, $bulgarian, $text);
}elseif ($lang == "en")
{
$text = str_replace($bulgarian, $english, $text);
}
echo "$text";
?>