I have an input form with the name student_lastname[]
.
<div class="form-group col-md-6 col-lg-6 col-xl-6 col-sm-6">
<label for="inputLastName">Last Name </label>
<input type="text" class="form-control" id="inputLastName_1" name="student_lastname[]" placeholder="" >
</div>
If it is not filled in it will automatically be filled with the string ""
or null, and if the value is filled in, then send the filled value. How can I create such conditions?