
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Clearing Form Values from Session
At 03:29 PM 12/05/2001 -0500, you wrote:
>Quoting Dorothy Puma (dorothy@digilink.net):
> > Hi All,
> >
> > I'm sure this must be a simple thing to do, but I have searched for 2
> > days, and have not been able to find the answer. What I want to do is
> > clear out all the form values from the session database, with out the
> > user having to click on any buttons. I have a form that the user fills
> > out, the values are sent to a 2nd page for viewing, an email is sent,
> > and the data is written to a database table. Once it has been written
> > to that database table, we no longer need the info stored in the session
> > database and want the form values to be cleared so they can then return
> > to the form with cleared values. I would like to do this on the 2nd
> > page, but haven't figured it out. I'm running 4.8.2 with perl 5.6.1
> >
> > Any ideas on this would be much appreciated.
> >
>
>[calc]
> $Values = {};
>[/calc]
>
This is effective, but be careful. It will clear *all* values, including
some you may want to retain. Explicitly specifying the value names is
messier, but more controlled.
- Ed L.
===============================================================
New Media E.M.S. Software Solutions for Business
463 Main St., Suite D eCommerce | Consulting | Hosting
Placerville, CA 95667 edl@newmediaems.com
(530) 622-9421 http://www.newmediaems.com
(866) 519-4680 Toll-Free (530) 622-9426 Fax
===============================================================
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users