Anyway, I have a PHP script, that gathers some basic information from a database and pre-populates a form for a user. The HTML that's generated looks something like this (to be brief):
Source (with PHP variables) for the Submit looks something like this:
Expand|Select|Wrap|Line Numbers
- <img src="/images/disk.gif" height="24" width="24" alt="Save" onclick="document.dnsform.edit['.$jsiter.'].checked=true; processsingle('.$jsiter.');">
Expand|Select|Wrap|Line Numbers
- <img src="/images/disk.gif" height="24" width="24" alt="Save" onclick="document.dnsform.edit[0].checked=true; processsingle(0);">
Expand|Select|Wrap|Line Numbers
- <input type="checkbox" name="edit['.$jsiter.']" id="edit" value="'.$row->ident.'">
Expand|Select|Wrap|Line Numbers
- <input type="checkbox" name="edit[0]" id="edit" value="258">
This is what I've got so far and it doesn't work. :(
(to be brief, I'm just trying to alert the user of the variable to make a simple exmaple)
Expand|Select|Wrap|Line Numbers
- var params = encodeURI ( ( 'edit['+idx+']' ) );
- alert(params);
Thanks,
CM