Mar 18, 2005 #1 tran008 Technical User May 14, 2003 110 US hi all, I need to insert multi row from a text box which contain multi email address separate by comma field. Anyone have example any where? thanks
hi all, I need to insert multi row from a text box which contain multi email address separate by comma field. Anyone have example any where? thanks
Mar 18, 2005 1 #2 Sheco Programmer Jan 3, 2005 5,457 US If you are using VBScript with your ASP then you can use the Split() function to create an array from a string. Something like this: MyArray = Split(Request.Form("PutTheNameOfYourTextBoxHere") Then you can just do a For/Next loop through the array elements and insert them one at a time. Upvote 0 Downvote
If you are using VBScript with your ASP then you can use the Split() function to create an array from a string. Something like this: MyArray = Split(Request.Form("PutTheNameOfYourTextBoxHere") Then you can just do a For/Next loop through the array elements and insert them one at a time.
Mar 18, 2005 1 #3 ethorn10 Programmer Feb 18, 2003 406 US doesn't Split() require a delimiter to split on? like ";" or "," or something similar? i.e. Code: MyArray = Split(request.form("textboxname"),",") Upvote 0 Downvote
doesn't Split() require a delimiter to split on? like ";" or "," or something similar? i.e. Code: MyArray = Split(request.form("textboxname"),",")
Mar 18, 2005 #4 Sheco Programmer Jan 3, 2005 5,457 US Yes it does... but tran008 said the values are "separate by comma" Upvote 0 Downvote
Mar 18, 2005 #5 Sheco Programmer Jan 3, 2005 5,457 US Oh, duh Now I see what you meant. Yeah, I forgot the second argument to the Split() function! /blush Upvote 0 Downvote