well i'd figured that much, but how do i do that in a form?
Like usually the name of an element would become a variable assigned with the value of the value of an element. That makes sense to me but is written dreadfully.
Right, so say i have
<input type='hidden' name='DefRef[0][name]' value='ThisLanguageName'>
<input type='text' name='DefRef[0][value]' value='English'>
How do i then read those values when the stuff has been posted?
Right, so i now have http://www.badassg.me.uk/lussumo/dictionary.php working to output http://www.badassg.me.uk/lussumo/Creation.txt
God knows why it doesnt like 8-37. The rest looks ok though.
Make sure that the attributes (name, value, title etc) are all enclosed in double quotes, not singles.
<input type='text' name='foo' /> != good
<input type="text" name="foo" /> == good
M.
Yeah - it's invalid HTML. It'll take your browser longer to render, and won't make any pages validate. If possible it's better to write valid code, because it avoids silly bugs and makes cross-browser compliance a whole lot better.
M.
Comments
$MyArray = new array(); $MyArray["id"] = $id; $MyArray["name"] = $name; $MyArray["value"] = $value;
M.