|
Posted by jsd219 on 06/14/07 23:21
I am going crazy over here. here is my code:
$query = "SELECT SEC_TITLE, SEC_ID
FROM section
WHERE SEC_TITLE != ''";
$result = mysql_query($query);
echo "<form action='#'>\r\n<select name='id'>";
while ($line = mysql_fetch_array($result, MYSQL_NUM)) {
$section = $line[0];
$id = $line[1];
//echo " <option value=$section>$section\r\n";
echo " <option value='$id'>$section</option>\n";
}
I need to pull both a name=id & name=section. and then send both via
the option value. What this does is it pulls all the section titles
for the table section and places them into a drop down box, when you
select one of the sections and send the form it places that section
title in the section field of the category table. i need it to not
only send the section title but also the section id to the id field of
the category table.
I am at a complete loss, Please someone help me
God bless
jason
Navigation:
[Reply to this message]
|