I need one help.I have multiple text field inside a div and i need to count those using PHP.I am explaining my code below.
<div class="questionshowp">
<input name="optional_0_0_ans" id="optional_0_0_ans" class="form-control firstsec" placeholder="Text, Image URL, or LaTeX" value="" type="text">
<input name="optional_0_1_ans" id="optional_0_1_ans" class="form-control firstsec" placeholder="Text, Image URL, or LaTeX" value="" type="text">
<input name="optional_0_2_ans" id="optional_0_2_ans" class="form-control firstsec" placeholder="Text, Image URL, or LaTeX" value="" type="text">
</div>
<?php
?>
Here 3 input fields are present inside a div.Here i need to echo how many nos of field is present using PHP.Please help me.