Re: Form data
| From: | CPT John W. Holmes | Date: | Mon, 08 Sep 2003 14:18:04 +0000 |
| Subject: | Re: Form data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161986@lists.php.net to get a copy of this message | ||
From: "Hardik Doshi" <php_hardik@yahoo.com>
> I have a form for adding a university course details.
> It has some fields for which the parent form calls the
> child form. For example: Each course is associated
> with at least one faculty member. So when the user
> enters faculty member then first user needs to find
> the appropriate faculty member using the search module
> and then needs to append that faculty member to the
> course details form by clicking the button next to
> faculty member's name on the search results.
>
> Now my question is once user leaves the parent form to
> the search form for the faculty member, at that time
> how can i store the already entered information on the
> parent form. So i can retrieve it back once i come to
> the parent form after finding the appropriate faculty
> member.
>
> I would like to know your ideas for this problem. I
> have think two possible ways to do it. One is to store
> entire $_POST array of parent form into the database
> associated with the session id. Second is to store
> $_POST array of parent form into the session file
> itself. But i don't know which one is the efficient
> and real world solution. Even i would like to know
> other possible solutions.
I'd just store it in the session. If you put it in the database, then you
have to worry about cleanup. Session cleanup is automatic.
---John Holmes...