jquery mobile提交表单,在PHP里面post不到值,这是哪里出错了,纠结了一天了还是没找到问题
add.php<?php$khmc=$_POST[khmc];echo("客户名称:".$khmc);?>index.html<formmethod="post"acti...
add.php
<?php
$khmc = $_POST[khmc];
echo("客户名称:".$khmc);
?>
index.html
<form method="post" action="add.php">
<div data-role="content">
<div data-role="fieldcontain">
<label for="khmc">客户名称:</label>
<input type="text" id="khmc" name="khmc" />
<div>
<div>
<button data-theme="b" id="submit" type="submit">提交</button>
</form> 展开
<?php
$khmc = $_POST[khmc];
echo("客户名称:".$khmc);
?>
index.html
<form method="post" action="add.php">
<div data-role="content">
<div data-role="fieldcontain">
<label for="khmc">客户名称:</label>
<input type="text" id="khmc" name="khmc" />
<div>
<div>
<button data-theme="b" id="submit" type="submit">提交</button>
</form> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询