tryin_to_learn wrote:I thought about doing it that way. My concern was that if we allow them to register their registrants one at a time, they might forget and at a future time, re-register someone who was already registered.
That was why I suggest each coordinator must register themselves first. Then, if they come back, they have to login. When they are freshly registered, or come back to the site after any amount of time and login, you can do a qucik query and present the names/emails of the people they have already reg'd under them as "event_registrants". Also, before you do an insert, you can query the db to see if a user already exists by seeing if their email address already exists or not. Simple.
I think this will give you more flexibility. In the event people are interrupted in the middle of the process, if you only batch the inserts at the end, their work could be lost.
tryin_to_learn wrote:However, whether I do the queries in a batch or with each form submit, I still want to be able to ask them how many of each kind of form they need, then present the forms one at a time. That's the part that has me stumped. I can present them all at once, but that could end up being a ridiculously long page, so I was hoping to present them sequentially. So the submit click on one form would take them to the next form in addition to storing the sql data or whatever. How do I do that?
Yes, that is the OTHER reason why I made my suggestions. They register themselves as coordinator, and then you say, "thank you for registering. What would you like to do now? ADD a new registrant, DELETE a registrant, or VIEW all the registrants under you?"
They can do things one at a time. After each time they add a new person under them, you present them with a very simple menu. WIth three or four options:
- View all
- Add new
- Delete current
- Edit current
The menu is presented to them if they are logged in (or newly registered) OR if they just completed an insert of a new user.
tryin_to_learn wrote:
(Incidently, when I say next form, I'm not talking about a new page -- these are multi-page forms.)
Another reason to do it the way I suggest. My way requires more work than storing the values in SESSION as Bodzan suggests, (side to Bodzan: I was thinking of that, too. Good suggestion. He might opt to go that way.)
However, (apologies to Bodzan for this) I think my way is better for two reasons:
1) It is more user friendly by providing options and a history if people already added
2) less chance of losing data entered if user is interrruped
*NOTE to you and Bodzan: These are just my opinions, of course, and there is a good chance that you or Bodzan will think of something even better no doubt. I am just compelled to argue my beliefs with conviction until proven wrong... :p