Originally posted by AstroTeg
Whatever is in box 2 will be made available to PHP. Or you could create a hidden field and put the data there.
A bit old, but check out http://www.irt.org and the JavaScript FAQs. Lots and lots of info regarding forms and list boxes...
Well That is what I thought but it does not seem to work.
here is the html
<select size='10' ondblclick=moveSelectedOptions(document.forms[0]['team[]'],document.forms[0]['nteam[]'],false); name='team[]' id='team[]' multiple='multiple'>
<option value='1'>Jon Doe</option>
<option value='4'>Jane Doe</option>
<option value='5'>Don Duck</option>
<option value='6'>Mic Mouse</option>
</select>
<input type='button' class='formButton' name='' id='' value='ADD->' onClick=moveSelectedOptions(document.forms[0]['team[]'],document.forms[0]['nteam[]'],false); />
<input type='button' class='formButton' name='' id='' value='<-DEL' OnClick=moveSelectedOptions(document.forms[0]['nteam[]'],document.forms[0]['team[]'],false); />
<select size='10' ondblclick=moveSelectedOptions(document.forms[0]['nteam[]'],document.forms[0]['team[]'],false); name='nteam[]' id='nteam[]' multiple='multiple'>
</select>
nteam[] appears to be empty when submited.
Thanks for the link I will check it out.