[Zope] combining form variables and URL values
Tue, 10 Jun 2003 22:23:51 +0200
On Tue, 10 Jun 2003 15:41:41 -0400 GMT (..21:41 where i live(GMT+2) )
firstname.lastname@example.org asked the Zope mailinglist about the following:
> I'm quite sure how I should be thinking about this.
> I have a page creates a report based on parameters that are in the URL=
> This is important because the user must be able to bookmark the locatio=
> with the parameters included. For the sake of this example let's say th=
> looks like this-
> On that page 'UID' and 'skin' are available to dtml-var. I have a form =
> that page that take 2 additional input fields from the user(using formu=
> if that matters). I need to then pass all four values into a dtml metho=
> validation, then into a zsql method. Unfortunately 'UID' and 'skin' are=
> in the namespace of the initial page, thus this doesn't work.
> I think the solution would be to make some hidden fields in the form an=
> their values according to the values on 'UID' and 'skin'. Then once the=
> results are passed through the validator all 4 values will be available=
> the zsql method.
> Is this the most direct way to accomplish this goal?
For a set of only two 'pages' this would be the simplest and most
straightforward solution, and it works just fine the way you described
For more complex situations, look into using sessions.