I am new very new to Java. I am trying to get the data from form and to email. Its Ok when there is a string but when array cames it became very difficuit for me to merge with string and mail it. Please check my following code
Thanks & best regards
String phone=req.getParameter("phone2");
String country=req.getParameter("country");
String[] btype=req.getParameterValues("btype");
msg1="<table border=0 cellpadding=4 align=center cellspacing=5 width=500>"+
"<tr><td class=khan><font color=red>Country</font></td><td class=khan>"+country+"</td></tr>"+
"<tr bgcolor=#EEEEEE><td class=khan><font color=red>Phone</font></td><td class=khan>"+phone+"</td></tr>";
msg2="<tr><td class=khan><font color=red>Business Type</font></td><td class=khan>";
for(i=0;i<btype.length;i++){
if(!btype[i].equals("")){
btype[i]
}
}
msg3="</td></tr>";
mailmsg=msg1+msg2+msg3;