我正在尝试学习PHP并遇到了Bootstrap Form向导,并想尝试一下.
我已经制作了一个基本的注册表单,它基本上应该将表单中的值插入到数据库中.
使用普通表单我已使用表单提交按钮成功注册.但是使用这个向导我没有提交按钮,很少有研究我发现这种类型的表单是用jquery处理的,依此类推.我需要了解如何继续使用这些表单使用POST将数据插入到我的数据库中.
PHP代码:
<?php
session_start();
include_once 'dbConnect.php';
if(!isset($_SESSION['user']))
{
header("Location: index.php");
}
$res=mysql_query("SELECT * FROM emp_table WHERE user_id=". $_SESSION['user']."");
$userRow=mysql_fetch_array($res);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
<meta name="author" content="Coderthemes">
<link rel="shortcut icon" href="images/favicon_1.ico">
<title>Create New Customer</title>
<link rel="stylesheet" type="text/css" href="plugins/jquery.steps/demo/css/jquery.steps.css">
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="css/core.css" rel="stylesheet" type="text/css">
<link href="css/components.css" rel="stylesheet" type="text/css">
<link href="css/icons.css" rel="stylesheet" type="text/css">
<link href="css/pages.css" …Run Code Online (Sandbox Code Playgroud)