The first one should be correct, but there are other things on the page that have issues that would cause it to not work.
The code that is supposed to be building the $AddOption value is based on a form element on the page named "ProdOptions". I don't see that form element on the page at all right now.