View Single Post
  #1 (permalink)  
Old 03-22-2008, 11:07 AM
farakhkhan@yahoo.com farakhkhan@yahoo.com is offline
Member
 
Join Date: Mar 2008
Posts: 3
farakhkhan@yahoo.com is on a distinguished road
String and Arry Problem
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

Code:
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;
Reply With Quote
Sponsored Links