Welcome Guest, Not a member yet? Register   Sign In
Implementing a form
#2

[eluser]JHackamack[/eluser]
One way of doing this would be to create a controller "Entry" and adding three functions: add, photos, and confirmation.

Confirmation posts the variables to photos, which, before you display the form you insert the details into the database getting a unique ID to pass to the photos view.

In your photos view you use the hidden identifier to post to confirmation where you pull the stuff from Details & Photos together.

Then when you're looking for looking for entries you get any entries that have stuff in both tables (i would think that there would be two tables)

Your concern for editing information is valid, and depending on what you can do is place specific wording on the photos page saying you can change the information. Although if they hit the back button and change information you can set a session variable when you're doing the post to the photos that you look for in details that would either give error message, or provide an update form rather than create new.

Hopefully this makes sense before i've had caffeine.

Jacob


Messages In This Thread
Implementing a form - by El Forum - 01-19-2010, 07:30 AM
Implementing a form - by El Forum - 01-19-2010, 08:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB