<html> <head> <title>Добовление друга</title> </head> <body> <form aсtion="test11.php" method="get"> <table> <tr><td>Друг<td><input name=link maxlength=30 size=30> <tr><td colspan=2><input type=submit value="Ввод"> </table> </form> </body> </html>
<?php $bd=mysql_connect("localhost", "root",""); mysql_select_db("test12"); $link3=$_GET["link"] $query = "insert into friends values ("$link3") "; $result= mysql_query ($query, $bd); mysql_close($bd); ?>