I need to disallow some URLs on my site but I am not sure how to do that. I have a site that has products and reviews.  When someone makes a review, the site generates a URL automatically like this:

mysite.com/addreview_1.htm
mysite.com/addreview_2.htm
....
mysite.com/addreview_9999.htm


I need some way to disallow all the URLs which will appear in the future.


Question: Getting the value of a select option
Answer: You can use the key to get the value by referencing the options array in the original form element:

$key = $form_state['values']['submitted_tree']['company_1'];
$value = $form['submitted_tree']['company_1']['#options'][$key];