form with a random number field?
Posted: 2013-09-23 08:23
Hi all,
I need to create a form that should collect user data along with a random number.
The random number should be unique.
Sample form:
- name
- email
- random number (hidden field)
What is the best way to do this with ADDT or Kollection pro?
Another option could be:
- I creare two db tables: user_data and random_numbers (the latter could be pre-filled: I think 10.000 records should be enough).
- the "random_numbers" table should contains at least 3 fields: ID_num, number_num, status_num (1 or 0; 1=used, 0=not used).
- when I make the insert transaction in the user_data table I pick-up the next record from the "random_numbers" table;
- after inserting the record in the user_data table I should update the random_numbers table and change the picked-up record status to 1
This is what I think is best to do, but I don't know how to do it with ADDT.
I can easily create the custom transaction, but how can I link another transaction to pick-up from the random_numbers table and update that table accordingly?
I thank you very much in advance for any help.
Ciao .
tony
I need to create a form that should collect user data along with a random number.
The random number should be unique.
Sample form:
- name
- random number (hidden field)
What is the best way to do this with ADDT or Kollection pro?
Another option could be:
- I creare two db tables: user_data and random_numbers (the latter could be pre-filled: I think 10.000 records should be enough).
- the "random_numbers" table should contains at least 3 fields: ID_num, number_num, status_num (1 or 0; 1=used, 0=not used).
- when I make the insert transaction in the user_data table I pick-up the next record from the "random_numbers" table;
- after inserting the record in the user_data table I should update the random_numbers table and change the picked-up record status to 1
This is what I think is best to do, but I don't know how to do it with ADDT.
I can easily create the custom transaction, but how can I link another transaction to pick-up from the random_numbers table and update that table accordingly?
I thank you very much in advance for any help.
Ciao .
tony