I am trying to setup an admin page that links to multiple "add info to table" pages. The main page should require choosing a company and choosing the page to edit.
<form action="sel_pg.php" method="post">
<?php
echo "<select value=\"C_id\">";
$query = "SELECT C_id, C_Desc FROM f_Company"
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo "<option value=\"$row[C_id]\">$row[C_Desc]</option>\n";
}
echo "</select>";
?>
additional option box goes here...
submit button here.
</form>
How do I pass the variable $C_id that is created from the form to the next form? I know this is a noob mistake, but trial by fire is the best way to learn. I don't want to do it using global variables that seems like the easy and wrong way out.
Any help is appreciated and sorry if this is in the wrong forum.