I want to validate my form and i got this error
Notice: Undefined index: ReqQty in C:\project\userequisition.php on line 180
This is my code :
<td><label for="ReqQty">Quantity </label></td>
<td colspan="3"><input name="ReqQty" id="ReqQty" onkeypress="return numbersOnly(event)" onkeyup="ItmQty_Availability()" disabled="disabled">
<?php
$strReqQty = "";
if(!empty($_POST)){
if($_POST["ReqQty"]==NULL){ //ERROR here
echo "<font color=red>Enter the Quantity</font>";
}else{
$strReqQty = $_POST["ReqQty"];
}
}
?>
I got the error only for this input type while everything works fine on others