<form method='get' action='porders.cgi' name='frmOrder'> <input type='hidden' name='fpairs' value=''> </form> <a href='javascript:document.frmOrder.submit();'>Next</a>then instead of having a global string called fpairs you update
document.frmOrder.fpairs.value = "black|red|blue";The problem with the syntax you have is the wid parameter would be overwritten as you aren't passing it as an array. I'd be inclined to pass it as a string and then explode it on the pipe | symbol.