Jump to content

combo again


fareedreg

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.