fareedreg Posted December 30, 2009 Share Posted December 30, 2009 how to pass value of combobox to another form..... <?php include('connect.php'); $Tb = "mem_master"; mysql_select_db($Db, $link); $query = "select mem_id from mem_master order by mem_id"; $result= mysql_query($query,$link); $fel=mysql_num_fields($result); $nro=mysql_num_rows($result); if ($nro>0) { echo "<select name='item'>\n"; echo "<option>-- Select Item --</option>\n"; while ($row=mysql_fetch_array($result)) { echo "<option value='$row[item]'>$row[mem_id]</option>\n"; } } mysql_close($link); ?> this is my code but when i try value of combo to another php file through post method like mentioned below nothing appear why? $memval=$_POST['item']; Link to comment https://forums.phpfreaks.com/topic/186664-combo-again/ Share on other sites More sharing options...
Lamez Posted December 30, 2009 Share Posted December 30, 2009 not to sure but I think you can manually set a value in the $_POST array like so: <?php $_POST['someName'] = "myValue"; ?> so you might can use that bit of info to help. Link to comment https://forums.phpfreaks.com/topic/186664-combo-again/#findComment-985838 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.