< html > < head > < script type ="text/javascript" > ... function cbox()...{tt=document.forms[0].v1txt=""for (i=0;i<tt.length;++ i)...{if (tt[i].checked)...{txt+=tt[i].value + " "}}document.getElementById("ss").value="with " + txt} </ script > </ head > < body > < form > < input type ="checkbox" name ="v1" value ="AA" > With AA < br /> < input type ="checkbox" name ="v1" value ="bb" > With BB < br /> < br /> < input type ="button" onclick ="cbox()" value ="Send" > < br />< br /> < input type ="text" id ="ss" size ="50" > </ form > </ body > </ html >