|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
pass an array created in javascript while submitting
hello,
i created an array and getting those values in that array. while submitting the page i have to get this array in the next page where i do my database insert/update thing... so how can we do that sree |
|
#2
|
|||
|
|||
|
RE: pass an array created in javascript while submitting
I assume this is a javascript array?
You can write the array as a comma-seperated string into a hidden field and explode it into an array again in your script: <input name="theArray" type="hidden" /> javascript: var myArray = new Array('a', 'b', 'c'); document.forms[0].elements['theArray'].value = myArray.toString(); |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > pass an array created in javascript while submitting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|