0

I get this:

T = wrq:get_qs_value("name",ReqData)

But suppose I want to retrieve "fname", "lname", "gnder", "age", etc. from a form submission. Do I need to repeat variations on the line above for every variable? Or is there a more elegant sytax?

Many thanks,

LRP

Anne
  • 26,765
  • 9
  • 65
  • 71
Lloyd R. Prentice
  • 4,329
  • 3
  • 21
  • 31

1 Answers1

0

With a good night of sleep, I came up with this answer to my own question:

...
L = ["fname", "lname", "gender", "age"],
[ wrq:get_qs_value(X) || X < L ]
...

LRP

Lloyd R. Prentice
  • 4,329
  • 3
  • 21
  • 31