How about, on the same form, you give them the option to enter the name of the nonexistent company. Then, on your action page, if you detect that they entered a new company, catch that and have them finish entering that data. Then you can continue and handle the results of the first form after that...
--Ferg Pete Ruckelshaus wrote: >I'm sure there is an elegant solution to this, I just don't know what it is. > >I have a form. Text fields, dropdowns, that sort of thing. One >dropdown field has "companies" with a listing of companies. If a >company is not in the dropdown, the user needs to add that company to >the database, which is a form on a different page. This requires that >the user navigates away from the form, but they might have already >entered some data in the original form. I don't want to have them >retype the info. > >The approach I am headed towards now is having the "add company" link >actually submit the form to an interstitial page that dumps the form >data into a session.redirect structure that I created, then redirects >the user to the "add company" form. The problem I am having is that >the data in the session.redirect structure is being "lost" when the >interstitial page redirects to the "add company" form, so all the >original form data (and the URL that should be navigated back to) is >being lost. > >Is there a more elegant solution to this problem? > >Thanks, > >Pete > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229089 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

