Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Textbox Array Issues



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
JGrummell



Joined: 13 Apr 2006
Posts: 1

PostPosted: Thu Apr 13, 2006 4:12 pm    Post subject: Textbox Array Issues Reply with quote

I am using several textboxes with the same name to create an array.

<INPUT TYPE="TEXT" Name="test1" VALUE="A">
<INPUT TYPE="TEXT" Name="test1" VALUE="B">
<INPUT TYPE="TEXT" Name="test1" VALUE="C">
<INPUT TYPE="TEXT" Name="test1" VALUE="D">

So when the contents is submitted it appears like:

test1 = A,B,C,D
And a split of the value returns 4 array items.

The Problem I am facing is that if the texboxes contain commas. For Example:
<INPUT TYPE="TEXT" Name="test1" VALUE="A,1">
<INPUT TYPE="TEXT" Name="test1" VALUE="B,2">
<INPUT TYPE="TEXT" Name="test1" VALUE="C,3">
<INPUT TYPE="TEXT" Name="test1" VALUE="D,4">

The content submitted appears like:

test1 = A,1,B,2,C,3,D,4
And a split of the item returns 8 items.

Has anyone faced this problem before and knows of a way around it?

James
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap