Forum OpenACS Development: Re: Re: Problem with ad_form

Collapse
Posted by Matthew Coupe on
Thanks for the help Dave but I still can't seem to get it! I think I know what you mean and I've put my code below.

I've been playing around with all kinds of permetations of this today! I'm close, I can sense it...

I went with something along these lines...

set title "words"
set login_labels [list student teacher]
set login_values [list student teacher]
set login_listoflists [list $login_labels $login_values]

ad_form -name test -form {
{title:text(text) {label "Title"} }
{login_id:text(select)
{label "category"}
{options {$login_listoflists}}
}

Anyone see where I'm going wrong this time?
I need the HTML output to look something like this...

select name="login_id"
option value="student"student /option
option value="centre"centre /option
/select

At the moment it keeps giving me either an error or something like this...

Anyone see where I'm going wrong this time?
I need the HTML output to look something like this...

select name="login_id"
option value=""student/option
option value=""centre/option
/select

Thanks in advance!
Matthew