php+mysql+bootstrap提交到数据库中
<!doctypehtml><html><head><title>$title</title><divclass="container-fluid"><divclass=...
<!doctype html>
<html>
<head>
<title>$title</title>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span8">
<div class="tabbable tabs-left" id="tabs-872886">
<ul class="nav nav-tabs">
<li class="active">
<a href="#panel-274357" data-toggle="tab">A</a>
</li>
<li>
<a href="#panel-496253" data-toggle="tab">B</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="panel-274357">
<p>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="GET">
<select name="att[]" >
<option value="AAAA ">Windows</option>
<option value="BBBB ">Linux </option>
</select>
<?php
// 定义变量并设置为空值
$name = $TWOname = "";
if (empty($_POST["name"])) {
$nameErr = "你还没写";
} else {
$name = test_input($_POST["name"]);
}
// NO.1
if (empty($_POST["Cname"])) {
$TWOnameErr = "你还没写";
} else {
$TWOname = test_input($_POST["TWOname"]);
}
// NO.2
<input name="$name" type="text" class="form-control" placeholder="名称" value="" size="15">
<input name="$TWOname" type="text" class="form-control" placeholder="第二名称" value="" size="15">
<button class="btn" type="button">提交</button>// 读取表格“名称”到表QQQ的name列里面,读取表格“名称”到表QQQ的TWOname列里面并保存
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</head>
帮我完善好着里面的功能
谢谢 展开
<html>
<head>
<title>$title</title>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="row-fluid">
<div class="span8">
<div class="tabbable tabs-left" id="tabs-872886">
<ul class="nav nav-tabs">
<li class="active">
<a href="#panel-274357" data-toggle="tab">A</a>
</li>
<li>
<a href="#panel-496253" data-toggle="tab">B</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="panel-274357">
<p>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="GET">
<select name="att[]" >
<option value="AAAA ">Windows</option>
<option value="BBBB ">Linux </option>
</select>
<?php
// 定义变量并设置为空值
$name = $TWOname = "";
if (empty($_POST["name"])) {
$nameErr = "你还没写";
} else {
$name = test_input($_POST["name"]);
}
// NO.1
if (empty($_POST["Cname"])) {
$TWOnameErr = "你还没写";
} else {
$TWOname = test_input($_POST["TWOname"]);
}
// NO.2
<input name="$name" type="text" class="form-control" placeholder="名称" value="" size="15">
<input name="$TWOname" type="text" class="form-control" placeholder="第二名称" value="" size="15">
<button class="btn" type="button">提交</button>// 读取表格“名称”到表QQQ的name列里面,读取表格“名称”到表QQQ的TWOname列里面并保存
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</head>
帮我完善好着里面的功能
谢谢 展开
1个回答
展开全部
<?php
echo ' web-root = '.$_SERVER['DOCUMENT_ROOT'].'<br>';
echo ' current-file = '.__FILE__.'<br>';
echo ' current-dir = '.dirname(__FILE__).'<br>';
echo ' http-root = '.$_SERVER['HTTP_HOST'].'<br>';
echo ' web-position = '.$_SERVER['PHP_SELF'].'<br>';
$file='c:/webroot/index.php';
echo ' file-position = '.$file.'<br>';
$fileWebAddress='http://'.str_replace($_SERVER['DOCUMENT_ROOT'],$_SERVER['HTTP_HOST'],$file);
echo ' file-web-position = '.$fileWebAddress.'<br>';
?>
echo ' web-root = '.$_SERVER['DOCUMENT_ROOT'].'<br>';
echo ' current-file = '.__FILE__.'<br>';
echo ' current-dir = '.dirname(__FILE__).'<br>';
echo ' http-root = '.$_SERVER['HTTP_HOST'].'<br>';
echo ' web-position = '.$_SERVER['PHP_SELF'].'<br>';
$file='c:/webroot/index.php';
echo ' file-position = '.$file.'<br>';
$fileWebAddress='http://'.str_replace($_SERVER['DOCUMENT_ROOT'],$_SERVER['HTTP_HOST'],$file);
echo ' file-web-position = '.$fileWebAddress.'<br>';
?>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询