Hello! There was a problem in adding this to mysql. The form is filled, but when you click on the button, nothing is added to the database, and the data from the form does not even go to the add.php file. Help me find problems.
Код html <html> <head> <title>HTML-форма добавления новых книг</title> </head> <body> <form name="forma" aсtion="add.php" method="post"> <input type="text" name="i" /><br> <input type="text" name="f" /><br> <input type="text" name="n" /><br> <input type="text" name="o"/><br> <input type="submit" value="Ввод"/> </form> </body> </html> код php <html> <head> <title>Программа добавления новых книг (файл insert_book.php)</title> </head> <body> <?php $i=$_POST['i']; $f=$_POST['f']; $n=$_POST['n']; $o=$_POST['o']; $link = mysql_pconnect("localhost","root","") or die ("Невозможно подключение к MySQL"); mysql_select_db("dog") or die ("Невозможно открыть таблицу с данными"); $query = ("INSERT INTO prepod (idprepoda, familiya, name, otchestvo) VALUES ('$i', '$f', '$n', '$o')"); mysql_query ( $query ); if ($query == 'true') echo "Добавлено в базу данных."; mysql_close ($link); ?> </body> </html>