3
I have a web application in which I pass by input hidden
a dynamic number of values
across
from a form to a action
delphi.
In the action
, I wanted to know a way to get all the values
with the same name.
When there’s only one value
, i use request.ContentFields.Values['numero']
I am passing the form inputs as follows:
<input type="hidden" name="numero[]" value="123" />
<input type="hidden" name="numero[]" value="456" />
<input type="hidden" name="numero[]" value="789" />
But how do I get everyone inside the action
?
- The conventional way returns only the contents of the first
input
. - I tried to create a dynamic array and pass it to it, but it didn’t work.
Is using intraweb?
– user3628
not Tiago. Here we do by playing html inside a Replay.content
– Jorge Luis
okay, interesting. If you know a link on the web about an application similar to what you do I would be happy to see it, because I would like to know it. Grateful!
– user3628
But by the way, the properties name are at the value number[]. you’re playing an index on those names, right? So that you stay..
numero[0], numero[1], numero[2]
and then receive by a vector..– user3628
James. What I wanted was to bake everyone with the same name and go through all of these in the action and take the values. Since I’m not being able to figure out how to do this in Delhi 7, I’m moving on to this solution you asked. I will pass several inputs with different Names. So I will be able to take the other side quietly.
– Jorge Luis