I have a form with 10 – 6 trimer sequences on it (ex. ACT AGT TGA ACC ATG ATC). I have another script that verifies the contents to make sure only DNA base pairs are used (A, C, T, and G). After that the code below is to be used to calculate the price of their sequences and create a total. I currently have this working if I process each sequence individually with this code (with x being replaced the sequence number):

So, as you can see I use the result of the ten sequence calculation to get the final $ordertotal, which is passed on (along with all the other info on the order page and $seqtotX for each sequence) to a confirmation page.