HTML表单将与数据库连接以存储数据

时间:2018-01-17 06:13:48

标签: html mysql

我有一个现有的HTML表单,它是用户提交表单而不是用户注册表单,现在我想让所有用户将数据提交到数据库。能帮忙吗?

1 个答案:

答案 0 :(得分:0)

i just give you hint ok because it is very easy search and read ok
THIS IS HTMl CODING
   <input type="text" name="name">
   <input type="submit" name="button">
THIS IS PHP
   if(isset($_POST['button']))
   {
    $text=$_POST['name']
   }

  $query="INSERT INTO table('column') VALUES('$text')";