Current location: Hot Scripts Forums » General Web Coding » JavaScript » Form Validation with Arrays


Form Validation with Arrays

Reply
  #1 (permalink)  
Old 11-30-04, 02:22 PM
blessedrub blessedrub is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Form Validation with Arrays

Is it possible to accept values from a form in an array and validate the value using javascript?
Reply With Quote
  #2 (permalink)  
Old 12-07-04, 02:18 AM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
I'm not quite sure what you mean... If you want to retreive data from a form element and then store it in an array before validation, then yes it's possible. If you're trying to send an array-object from a form element into the validator, you'll have to send the data as a continuous string of values with a separator like comma. Then you can split the values into arrays before validation.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Form validation failing in Mozilla... CarlSieber JavaScript 3 11-19-04 02:51 PM
form validation puppy PHP 7 11-07-04 05:46 PM
Php form validation script blessedrub PHP 4 10-16-04 07:15 PM
Flexible form validation question epetoke JavaScript 6 09-12-04 04:19 PM
Form validation - required fields Funky_Monk JavaScript 1 08-16-04 10:26 AM


All times are GMT -5. The time now is 10:36 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.