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.
<head>
<meta charset="windows-1251">
</head> <?php include ("info.php") ?>
<form name="forum" action="" method="post">
<p>Forum</p>
<p><input type="text" name="forum" value="<?php echo $forum ?>"></p>
<p>Bay</p>
<p><input type="text" name="bay" value="<?php echo $bay ?>"></p>
<p>Martin</p>
<p><input type="text" name="martin" value="<?php echo $martin ?>"></p>
<p><input type="submit" name="formbutton1" value="Запис"></p>
</form>
<?php
if($_POST['formbutton1'])
{
$forum = $_POST['forum'];
$bay = $_POST['bay'];
$martin = $_POST['martin'];
$file = "info.php";
$config = fopen($file,"w+");
$data = "<?php \n\$forum = \"$forum\"; \n\$bay = \"$bay\"; \n\$martin = \"$martin\"; \n\n?>";
$ok=fwrite($config, $data);
fclose($config);
if($ok)
{
echo "zapisa se";
}
else
{
echo "ne se zapisa";
}
}
?>
<?php
$forum = "forum1";
$bay = "bay1";
$martin = "martin1";
?>