On Tue, Jul 30, 2002 at 10:07:38PM +0100, Norman Khine wrote:
Hello, I have a form which has number of fields and also has 3 radio buttons, I am a bit stuck as to how to process this form as I want to be able to depending on the radio button choice made for the response to be a different dtml document.
So if I choose radio button 1, the result will be added to the database and the response will take me to page1.dtml; if the choice is radio button2 the response will take me to page2.dtml and so on....
What is the best way to do this two actions, add the data to the database and redirect to the correct page?
Just have your radiobuttons set a variable, let's say result_page, and have the form result be a script (python, probably) that does this: # ... add your data to database, and then: REQUEST.RESPONSE.redirect(REQUEST['result_page']) -- Paul Winkler home: http://www.slinkp.com "Muppet Labs, where the future is made - today!"