form input with same name

sourceuno
Posts: 225
Joined: Mon Apr 09, 2001 3:58 pm

form input with same name

Post by sourceuno »

I have a form with a 2 text inputs used for user queries and both inputs have the same name. I named the inputs "query". It seems my sql statement has a problem when both inputs in the $query variable. I tried putting the inputs in 2 separate forms, but I think they're still using the same $query variable. Is having form inputs with the same name allowed in Vortex?
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

form input with same name

Post by John »

Yes, it is allowed in Vortex. You will end up with a multivalued variable in Vortex, which will then follow the rules for those in the SQL statement. What problem are you seeing?
John Turnbull
Thunderstone Software
User avatar
Kai
Site Admin
Posts: 1272
Joined: Tue Apr 25, 2000 1:27 pm

form input with same name

Post by Kai »

A multi-valued variable parameter passed to <SQL> will become a parenthetical comma-separated list, eg. the values "bill clinton" and "william h. macy" will become "(bill clinton,william h. macy)". This is intended to make a Metamorph set, but depending on the parameter values and the syntax of the SQL statement it may not be what you want.