Hello, I have some input, but one of them is disabled (yes, and I need it for my time sheet), but how can I send it to autocomplete.php for insert.php. I have this error Undefined index: client1 in C: \ wamp \ www \ testlp \ insert.php on line 30
Here is my autocomplete.php code
<form action = 'insert.php' method="post" >
<input type="text" name="client1" class = "client" size="12" id ="client1" disabled />
</form>
here is my insert.php code
session_start();
$date = $_POST['data'] ;
$client1 = $_POST['client1'] ;
echo($client1);
echo($date);
EDIT I tried this:
<input type="text" name="client1" class = "client" size="12" id ="client1"readonly />
here's the error: Notice: Undefined index: client1 in C:\wamp\www\testlp\insert.php on line 12
source
share