Forums
This topic is locked
Suggestions for managing multiple forms
Posted 24 May 2003 02:17:43
1
has voted
24 May 2003 02:17:43 Roger Smithe posted:
I have a question about the best way to implement a page with multiple forms.The page would comprise two forms. Form 1 would enable posting a new job position
into a table. Pretty straight forward.
Form 2 would be info on the company posting the position. Since the company can
create an account without posting a position it's possible to have one of two
conditions when a company does decide to post a position.
1. The company info is blank so we collect it with form 1 on the same page as
we collect the position info, form 2.
2. The company has already completed form 2 and just wants to post another position.
In this case we would like to present the company info (form 2) so it may
be edited or left as is and have form 1 collect the info on the new position
they're posting.
In a brute force manner I can see a couple of ways to do this but I felt the forum
might have a more elegant (read as simpler) way to do it.
My methods as related to determining how to handle form 2 (Company info)
1. Add a flag field in the company info table, to hold either 'New' or 'Return'
a.)The page holding the forms would read the flag field with an 'if then' and if the flag
says 'New' take them to a page with two enter behavior forms (form 1 and form 2)???
b.)If the flag reads 'Return' take them to a page that has and update behavior for the
company info (form 2) and and enter behavior for the postition posting.???
2. As the user if they are a returning user, if yes redirect as in 1.b.) above.
If a new user redirect to 1.a.) above.???
3. When the user (company) registers, append a blank record to the 'company info table'
Use 1.b.) above and let the user update the blank record.???
Suggestions, new ideas, Please
Edited by - alpha1138 on 28 May 2003 18:51:45