Question
Forgive me, I'm new to Twiki but I've done a lot of HTML form creation via cgi and I'm having a bit of a mental block figuring out dynamic forms in twiki (ideally based on
MySql). I've looked at the Database and DBI plugins but they don't appear to allow me to create dynamic forms (or do they?).
I would like to have a form drop-down which represents a list of servers and then upon selecting a server, have a custom topic showing some specific columns from a mysql table.
Is there a way to build dynamic forms with twiki? I'm using php to include from twiki but I'd rather do it in twiki if possible. The output can't just be a plain table -- I have to build a form.
Could someone post the code used to build a dynamic drop-down and pass to another topic and then have the topic read from the URL to know the argument passed to it and then set form data after doing an SQL query? Since I'll be displaying the same drop-down in the new topic, I want to do the equivelent of a
document.form.dropdown[0].selected=true.
I think once I see an example, I'll understand.
I also note that the %include% tag seems to strip out javascript. So my included php scripts that return javascript don't work. Is this normal? If I just put the javascript in a twiki page, it works. Just doesn't when including.
Environment
--
ChrisElfers - 20 Dec 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.