new file:
addToDataBase.php
new file:
index.html
new file:
redact.html
new file:
update.php
diff --git a/addToDataBase.php b/addToDataBase.php
new file mode 100644
index 0000000..041e92b
--- /dev/null
+++ b/addToDataBase.php
@@ -0,0 +1,19 @@
+<?php
+
+mb_internal_encoding('utf-8');
+error_reporting(-1);
+
+$student = array();
+$example = array('firstName', 'lastName', 'sex', 'section', 'email', 'year', 'exams', 'isLocal');
+
+foreach ($example as $field) {
+	$student[] = $_POST[$field];
+}
+
+
+$DHB = new PDO('mysql:host=localhost;dbname=sat', 'root', '');
+$DHB->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
+$STH = $DHB->prepare("INSERT into students (firstName, lastName, sex, section, email, year, exams, isLocal) values (?, ?, ?, ?, ?, ?, ?, ?);");
+$STH = $STH->execute($student);
+
+?>
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..1a344a0
--- /dev/null
+++ b/index.html
@@ -0,0 +1,35 @@
+<html>
+	<head>
+  		<meta charset="utf-8">
+		<title>
+			 База данны ЕГЭ
+		</title>
+	</head>
+	<body>
+		<center>
+		<form action="addToDataBase.php" method = "post">
+			Ваше им'я: <br>
+			<input name = "firstName" type = "text" size = "40"><br>
+			Ваша фамилия: <br>
+			<input name = "lastName" type = "text" size = "40"><br>
+			Пол:
+			<input type = "radio" name = "sex" value = "Man">Муж.
+			<input type = "radio" name = "sex" value = "Female"> Жен.<br>
+			Группа: <br>
+			<input type = "text" name = "section" size = "40"><br>
+			E-mail: <br>
+			<input type = "text" name = "email" size = "40"><br>
+			Год рождения: <br>
+			<input type = "text" name = "year" size = "40"><br>
+			Сумма за 3 экзамена: <br>
+			<input type = "text" name = "exams" size = "40"><br>
+			Вы с Москвы?
+			<input type = "radio" name = "isLocal" value = "Yes"> Да
+			<input type = "radio" name = "isLocal" value = "No"> Нет<br>
+			<br>
+			<input type="submit" value="Отправить">
+   			<input type="reset" value="Очистить">
+		</form>
+		</center>
+	</body>
+</html>
\ No newline at end of file
diff --git a/redact.html b/redact.html
new file mode 100644
index 0000000..81c21c9
--- /dev/null
+++ b/redact.html
@@ -0,0 +1,33 @@
+<html>
+<head><title>
+Редактировать свои данные
+</title></head>
+<body>
+		<center>
+		<form action="update.php" method = "post">
+			Ваше им'я: <br>
+			<input name = "firstName" type = "text" size = "40"><br>
+			Ваша фамилия: <br>
+			<input name = "lastName" type = "text" size = "40"><br>
+			Пол:
+			<input type = "radio" name = "sex" value = "Man">Муж.
+			<input type = "radio" name = "sex" value = "Female"> Жен.<br>
+			Группа: <br>
+			<input type = "text" name = "section" size = "40"><br>
+			E-mail: <br>
+			<input type = "text" name = "email" size = "40"><br>
+			Год рождения: <br>
+			<input type = "text" name = "year" size = "40"><br>
+			Сумма за 3 экзамена: <br>
+			<input type = "text" name = "exams" size = "40"><br>
+			Вы с Москвы?
+			<input type = "radio" name = "isLocal" value = "Yes"> Да
+			<input type = "radio" name = "isLocal" value = "No"> Нет<br>
+			<br>
+			<input type="submit" value="Отправить">
+   			<input type="reset" value="Очистить">
+		</form>
+		</center>
+</body>
+
+</html>
\ No newline at end of file
diff --git a/update.php b/update.php
new file mode 100644
index 0000000..1562d99
--- /dev/null
+++ b/update.php
@@ -0,0 +1,16 @@
+<?php
+// Имя скрипта должно быть update.php
+mb_internal_encoding('utf-8');
+error_reporting(-1);
+
+$example = array('firstName', 'lastName', 'sex', 'section', 'email', 'year', 'exams', 'isLocal'); // Масив ключей. Вдруг пригодится?
+
+$upStudent = array();
+
+foreach ($_POST as $key => $value){
+	$upStudent[] = $value;
+}
+
+$db = new PDO("mysql:host=localhost;db=sat", 'root', '');
+$db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); // Выводи ошибки в PDO, пока что. В будущем будем отлавливать и возвращать.
+$STH = $db->prepare("UPDATE ")
\\
Merge branch 'master' of https://github.com/babyba/sat