您好,我有一些输入,但其中之一已禁用(是的,我需要我的时间表),但如何将它发送到autocomplete.php插入insert.php我遇到了此错误未定义索引:C:\ wamp \中的client1第30行的www \ testlp \ insert.php
这是我的代码autocomplete.php
<form action = 'insert.php' method="post" >
<input type="text" name="client1" class = "client" size="12" id ="client1" disabled />
</form>
这是我的代码insert.php
session_start();
$date = $_POST['data'] ;
$client1 = $_POST['client1'] ;
echo($client1);
echo($date);
编辑我尝试了这个:
<input type="text" name="client1" class = "client" size="12" id ="client1"readonly />
这里的错误: Notice: Undefined index: client1 in C:\wamp\www\testlp\insert.php on line 12
使用来自cypherabe的答案:https ://stackoverflow.com/a/22990008/2780941
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句