Dario Lopez-Kästen wrote:
Is there a way, or more accurately, has anyone done something like this w/o making the form call it-self?
I am asking because I am currently in a bit of a nightmare having to maintain other peoples code that uses forms that call themselves recursively, and I am trying to develop some coding guidelines for my projects that will ban the usage of forms that call themselves.
I know, I know, they can be damned handy at times but, as I said, the maintenance burden can be a pretty masive, especially when you try to debug/modify them.
Or is there no other way?
Thanks,
/dario
What I do is also using a python script as an intermediary for forms, no matter what they do. The form is written with the possibility of prepulating the values (i.e. <input type=text name=client_name value=<dtml-var name html_quote missing>>) I then POST to the python script, and the python script returns the form by calling it (not a redirect), passing in the filled out variables (or just the REQUEST), and maybe a variable which tells the form a message to display (i.e. "please fill out the missing values"). In your case, since your two forms seem to be slightly different, maybe write the common code in its own method. cheers, oliver