I need the post value of 'isp_value'
while ($result = mysql_fetch_array($isp_tab)) { $isp_value = $result[0]; echo '<input class="tablinks ion-social-rss" type="submit" name="isp_value[]" value="'.$isp_value.'">'; echo '<input type="hidden" name="isp_hidden_value[]" value="'.$isp_value.'">'; }
Im getting hidden value of isp_hidden_value[] but not the value of isp_value[]
$data = $_POST['isp_hidden_value']; foreach($data as $isp) { echo "isp_hidden =".$isp; //this echo works and show all the values in a row } if(isset($_POST['isp_value'])) //if condition fails isp_value is not set(!isset) { //$isp = $_POST['isp_value']; //echo 'isp = '.$isp; print_r($_POST['isp_value']); }
I need the submitted one value from isp_value
By using
<?php var_dump($_POST);?>
all values in a row from name='hidden_value[]' are shown but not a single submitted value from name='isp_value[]'.["isp_hidden_value"]=> array(9) { ["comcast"]=> string(7) "comcast" ["yahoo"]=> string(5) "yahoo" ["gmail"]=> string(5) "gmail" ["roadrunner"]=> string(10) "roadrunner" ["verizon"]=> string(7) "verizon" ["att"]=> string(3) "att" ["hotmail"]=> string(7) "hotmail" ["aol"]=> string(3) "aol" ["juno"]=> string(4) "juno" } }
Anyone help me solve this problem