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.
<?php
include_once "config.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
</head>
<style>
fieldset
{
width: 400px;
background: #ffffff;
}
</style>
<title>Видео Система</title><center>
<fieldset>
<legend>Добавяне на видео</legend>
<form method="POST">
<table>
<tr>
<td>Заглавие </td>
<td><input type="text" name="ime" class="input" />
</td>
</tr>
<tr>
<td width="40%">Линк към видео </td>
<td><input type="text" name="url" class="input" /></td>
</tr>
<tr>
<td>Линк към картинка </td>
<td><input type="text" name="kartinka" class="input" />
</td>
</tr>
</table>
<br />
<input name="clips" type="submit" value="Добави !" class="button" />
</form>
</fieldset>
<p>
<?php
if($_POST['clips'])
{
$video = $_POST['url'];
$kartinka = $_POST['kartinka'];
$title = $_POST['ime'];
$query = mysql_query("INSERT INTO `clips` (url) VALUES('$video')") or die(mysql_error());
echo '<br>Видеото беше успешно добавено мерси много!';
}
echo "</center>";
?>
</body>
</html>