Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP General
Using Arrays from Javascript
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Daniel Crichton, post: 4386321"] NoChat wrote on Thu, 20 Dec 2007 12:37:53 -0800 (PST): This just takes the contents of the Request items and puts them into an array variable that has a single item. eg. myvar = Array("test") creates an Array which has a single value at location 0. What does the output look like? I'm guessing you need to use Split to break up a string into items based on a delimiter. eg. myvar = Split("test1,test2",",") will result in an array with 2 items, "test1" at location 0 and "test2" at location 1. However, you might find that this is already done for you if the data is posted as fields with the same name. You can check this using the .Count property, eg. If Request.Form("pub").Count > 1 Then 'there are multiple items, which means they were posted all with the same field name and have been automatically split up in the Request collection End If [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP General
Using Arrays from Javascript
Top