header("Content-Type:text/html;charset=utf-8");
error_reporting(0);
require_once "AppCode/Conn.php";
if( $_POST['action']=="add")
{
$username = $_POST["username"];;
$telephone = $_POST["telephone"];;
$origin = $_POST["origName"];
$target = $_POST["destName"];
$remark = $_POST["remark"];
$addtime = date("Y-m-d H:i:s");
$sql = "insert into dt_fahuo(username,telephone,origin,target,remark,addtime)";
$sql .= " value('$username','$telephone','$origin','$target','$remark','$addtime')";
$con = GetConn();
if ($con->query($sql)===false)
echo "提交失败";
else
echo "提交成功";
CloseConn($con);
exit;
}
?>
物流发货网 - 首页用户名
电话号码
始发地
目的地
提交
$(function() {
$("#origName").locationselect({
nameTarget : "#origName",
codeTarget : "#origCode",
selectCity : false
});
$("#destName").locationselect({
nameTarget : "#destName",
codeTarget : "#destCode",
selectCity : false
});
// 登录文本框提示文字
$("#searchForm .input-text").focus(function() {
$(this).next().hide();
}).change(function() {
if(this.value !== "") {
$(this).next().hide();
} else {
$(this).next().show();
}
}).each(function() {
var self = $(this);
if (self.val() !== "") {
self.next().hide();
}
});
$(".place-holder").click(function(e) {
$(this).hide().prev().click();
e.stopPropagation();
});
});
var msg = '';
一键复制
编辑
Web IDE
原始数据
按行查看
历史