How to get value in another page using the POST method?
<label>
<input type="radio" value = "1" name="jsq[1]" checked>1
</label>
<label>
<input type="radio" value = "2" name="jsq[1]">2
</label></br>
<label>
<input type="radio" value = "3" name="jsq[1]">3
</label>
<label>
<input type="radio" value = "4" name="jsq[1]">4
</label></br>
<label>
<input type="radio" value = "5" name="jsq[1]">5
</label>
I want to get value of jsq[1] in myarr[1]. How can I do that?
$myarr[1] = $_POST['jsq[1]'];
$_POST['jsq'][1']- all of your inputs have the same name so only 1 of the values will come through$myarr[1] = $_POST['jsq'][1];You might have found it yourself with a simple test by printing the content of $_POST. ;)