I am creating a drop-down menu in which the second drop-down is dependent upon the first; the first drop down is a list of table, and depending on what table you select, the columns of that table will be able to be selected.

```
<form id = "table_column" action = "file_name.php">
    <select id = "tables" name = "tables" onclick = "script();">
        <option name = "table_option_one" value = "people">people</option>
        <option>...</option>
    </select>
    <select id = "columns" name = "columns" onclick = "other_script();">
        <option name = "column_option_one" value = "name">name</option>
        <option>...</option>
    </select>
    <input type = "submit"></input>
</form>

```

I have tried the code below to no success.

```
$table_name = $_POST["tables"];
$column_name = $_POST["columns"];

```

How do I access the values selected in each drop-down menu in PHP?

*I am only having a problem with the retrieval of the selected values.* The menus depending on another and switching work fine