小编The*_*oge的帖子

如何发布已禁用的输入

你好,我有一些投入,但他们中的一个被禁用(是,我需要为我的时间表),但我怎么把它给autocomplete.php我insert.php已经这个错误未定义指数:用C客户端1:\ WAMP \第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>
Run Code Online (Sandbox Code Playgroud)

这里是我的代码insert.php

    session_start(); 
    $date = $_POST['data'] ;
    $client1 = $_POST['client1'] ;

    echo($client1);
    echo($date);
Run Code Online (Sandbox Code Playgroud)

编辑 我试过这个:

<input type="text" name="client1" class = "client" size="12" id ="client1"readonly />
Run Code Online (Sandbox Code Playgroud)

这里的错误: Notice: Undefined index: client1 in C:\wamp\www\testlp\insert.php on line 12

php post input disabled-input

11
推荐指数
2
解决办法
4万
查看次数

标签 统计

disabled-input ×1

input ×1

php ×1

post ×1