Forum OpenACS Q&A: Re: Collecting POST variables

Collapse
Posted by Jeff Lu on
Erk. there is a syntax error on my post. this is the correct syntax.
I forgot to include the extend portion :P
Here is the revised code

ad_form -name myform -form {
{somekey:key}
{sometextbox:text(text) {label "some textbox"}
}

if { $codelogic } {
ad_form -extend -name myform {
{selectitem:integer(select)
{label "select item"}
{options $my_option_list}
}
}
} else {
ad_form -extend -name myform {
{otherselectitem:integer(select)
{label "other select item"}
{options $other_my_option_list}
}
}
}