pccode
10-13-2005, 08:21 AM
Check out these scripts:
http://www.codingforums.com/showthread.php?t=70051
Hope they help.
looka
10-14-2005, 11:35 PM
no they are not exactly im looking for - im just looking for some i dont know - perhaps a property of form which returns a string to be send... or an array..
Pyth007
10-18-2005, 11:45 PM
I'm confused as to what you are wanting...
In php, $_POST super-global array is an associative array of each named "input" element in a form...
Or in javascript, document.myFormName.getElementsByTagName('tagName') will give you a collection of elements having said tagName (eg replace 'tagName' with 'input' to get all input elements). You could do this several times to collect all elements in a form into one array...
Or you could start your own associative array onLoad and for each element's onChange, alter said array...
Maybe if you could provide a more general goal as to what you eventually want to happen, we may be able to provide more help. Also your code is somewhat difficult to understand since we don't have interpretations for 1-2 letter abbreviations for your variables (I get that f = 'form', but r, k, etc. has me stumped); this goes back to us not knowing what you want to eventually have happen...