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']; Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/186664-combo-again/#findComment-985838 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.