Thread: Solution
View Single Post
Old Oct 30th, 2004, 10:54 AM   #1
dnathe4th
Programmer
 
Join Date: Oct 2004
Posts: 32
Rep Power: 0 dnathe4th is on a distinguished road
ok lets see if i can explain this well enough
cur_pil = document.first.person.value;
cur_fld = document.first.field.value;
hid_name = "$all[" + cur_pil + "][" + cur_fld + "]";
tablevals_answer = 'document.tablevals.' + hid_name + '.value;';
document.first.valuer.value = tablevals_answer;

I have a whole bunch of hidden inputs, all named after the array they got their values from. The array is "$all[][]" (becuase they're getting values from a PHP script). I want "document.first.valuer.value" to be the value of one of those hidden inputs. But I don't know how to get it to access teh ".value" attribute of the hidden input i want. I know the piece of script i have there is wrong, but what do I do to fix it?
__________________
&lt;CENTER&gt;<span style='font-size:17pt;line-height:100%'>My Homepage</span>&lt;/CENTER&gt;
dnathe4th is offline   Reply With Quote