I need to set a variable equal to the productNames array. For example tempid2[1]=productname[1]; But this does not work.