[Zope] Passing a list through a form?

ghaley@mail.venaca.com ghaley@mail.venaca.com
Mon, 16 Apr 2001 10:52:12 -0400 (EDT)


	hi tony,

	you can build your list with the following sort of sequence:

	<dtml-call "REQUEST.set('f_errors',[])">
	<dtml-call "REQUEST.set('f_errors',f_errors+[error value])">

	where "error values" is the value returned from whatever it is
your are calling it with.  your <input> statement can remain the same.

	ciao!
	greg.

	Gregory Haley
	DBA/Web Programmer
	Venaca, LLC.

> I've been looking for the preferred way to send a list through a form to 
> another DTML document.
> 
> What I'm trying to do is something like this.
> 
> <form name="jumpform" method="post" action="pg_errors">
> 	<input type="hidden" name="f_errors:list" value="<dtml-var f_errors>">
> </form>
> 
> Where f_errors contains a list of strings which may contain characters  
> (including >'s and "'s) which destroy this form quickly.  I have not been 
> able to determine what format the value="" field should take in order for 
> this form to send a list.  Can someone clarify how this value="" field 
> should be created so that my calling document recieves data capable of being 
> reconstructed into a list?
> 
> NOTE: jumpform is javascript submitted by a custom header.
>