HI,
A form submits a name value pair, name=item500 value=20.
I can reference this in my script with $item500 to get the value.
If I don't know the name of the form element (ie - it starts with 'item' followed by a number I don't know) - how can I reference this?
I know what the number will be, but I need to do it as a variable - eg the number of the item is stored in $number.
What I need to do is get the value of item500, as item$number, but I have to reference it as a string, so I have to do $value$item = $item$number - which obviously doesn't work. I guess I have to concatenate this first, but how?
Thanks in advance, this has been doing my head in for 4 hours now!!
Matt.
A form submits a name value pair, name=item500 value=20.
I can reference this in my script with $item500 to get the value.
If I don't know the name of the form element (ie - it starts with 'item' followed by a number I don't know) - how can I reference this?
I know what the number will be, but I need to do it as a variable - eg the number of the item is stored in $number.
What I need to do is get the value of item500, as item$number, but I have to reference it as a string, so I have to do $value$item = $item$number - which obviously doesn't work. I guess I have to concatenate this first, but how?
Thanks in advance, this has been doing my head in for 4 hours now!!
Matt.