I have a formname in PHP somearray[0]
and then i want to pull it in javascript
document.form.somearray[0].value
but he thinks its an array although i want him to think its just a variable name. can i escape []?
Just use the {} syntax. i.e: if this is echo:
echo "document.forms.{$aray['key']}.value";
hth moon