Welcome Guest, Not a member yet? Register   Sign In
Form validation - callback function question
#1

[eluser]Andrewkha[/eluser]
hi!

I have a question regarding form validation with the callback function.
The documentation says that I can pass the additional parameter like this

"callback_foo[bar]"

but what if bar is not static but variable?

For example, I'm developing a sports application.
Need to enter a game details, including the tour number, into the specific tournament. Each tournament has different number of tours which is stored in the DB.
So how can I pass the tournament id to the callback function to get the higher limit? Or how can I pass already retrieved from the DB value?


Messages In This Thread
Form validation - callback function question - by El Forum - 02-20-2014, 04:03 AM
Form validation - callback function question - by El Forum - 02-20-2014, 04:12 AM
Form validation - callback function question - by El Forum - 02-20-2014, 12:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB