备忘 - ASP中将输入的文本按行赋值给数组...
<form id="form" target="_self" method="post" action="index.asp" ><p align="center">
<textarea name="Txt" id="Txt" cols="50" rows="5" tabindex="5" ></textarea>
<input name="btnSumbit" type="submit" tabindex="6" value="send"/>
</p></form><%
Dim strTxt,aryTxt,ItemTxt
strTxt = Request.Form("Txt")
strTxt = Replace(strTxt,vbCrLf,",")
aryTxt = Split(strTxt,",")
For Each ItemTxt In aryTxt
Response.Write ItemTxt
Next
%>
#cmt2226
回复