Hi,
I'm trying to set the action for my form to pass a parameter like so
template::form::create $form_name -method POST -property "action {task-new?story_id=$story_id}"
Of course there is no -property
and -html
does not work for this.
But I do see this code in template::form::render
# set the form to point back to itself if action is not specified
if { ! [info exists properties(action)] } {
set properties(action) [ns_conn url]
}
It looks like the intention is to allow action
to be specified. So the obvious question is what the is the recommended way to set a form parameter (like action!)? I'm not using ad_form
btw, I have reasons for that so please don't recommend that;)
tia