I seem to have a problem with this, I am pulling data from an mySQL databse and sending it to a form (Drop down menu) and everything seems to work (data in the drop down menu etc)
The problem is when I click on go, it redirects to the page but that is all.
begin:
echo "<form action='index.php?category=$id' method='post'>";
echo "<select name=\"id\" size=\"1\">";
$result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix("wfs_category"). " where pid=".$catid."");
while(list($id, $pid, $imgurl, $title, $description, $permission, $gdescription, $changed, $catdescription, $groupid, $catfooter) = $xoopsDB->fetchRow($result)) {
echo "<option value='$id'>$id.$title</option>";
}
echo "</select> ";
echo "<input type='submit' value='Go!' />";
echo "</form>";
echo "</div>";
end.
It seems that the value $id is not getting passed and the end result is just "www.homepage.co.uk/index.php?category= "
Could someone please tell me where I am going wrong here??