php - Notice: Undefined Offset 1 -


this value in text field

2013 toyota corolla (blue) vin:5yfbu4ee9dp082489

text field

<input type="text" class="form-control" name="dockreceiptvinno[]" id="dockreceiptvinno_1" placeholder="vin no">

in php i'm using code explode value based on colon (:) sign in vin number , php code is

$dockreceiptvinnoarray = isset($_post["dockreceiptvinno"]) ? $_post["dockreceiptvinno"] : array(); foreach($dockreceiptvinnoarray $vinnoval) {      $vinnovalexplode = explode(":", $vinnoval);      $vinnovalexplodeindexone = $vinnovalexplode[1];      $selectorderforloadingplan = "select fieldsname tablename fieldname = '".$vinnovalexplodeindexone."'"; } 

but problem i'm getting error of undefined offset although i've value in 1 index giving me error, don't know why? wrong thing in code, seems ok me, because i'm geeting value 5yfbu4ee9dp082489 in index 1 don't know why saying undefined offset 1.

note: know question repeated several times in code i'm getting value , still saying undefined offset 1.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -