Currently I'm working on a drop down box that retrieves the data from my database and then displays it as the values within the box. However then I try and retrieve the value and place it in another form, all I get printed out is [+value+]. I'm using modx, and thats why theres no checking that I have a connection to the database etc.

I have included the relevant part of the code below:

$result = $modx->db->select('manName', 'manufacturers');
$array = $modx->db->makeArray($result);

//sort
$pattern = array(
preg_quote('/[+text+]/')
);
$options = '';
foreach($array as $row){
$replacement = array(
$row['manName']
);
$chunk = $modx->getChunk('form_option');
$options.= preg_replace($pattern, $replacement, $chunk);
}
echo '<form method="POST"> <select name="select_item">'.
$options.'</select><input type="submit" value="Select Item" /></form>';

$manName=$_POST['select_item'];
echo $manName;

Any help would be appreciated!