All pastes #800517 Raw Edit

Mine

public text v1 · immutable
#800517 ·published 2007-11-28 14:49 UTC
rendered paste body
ad_page_contract {
    This is the form to insert contry information
    @author Iuri
} {
    country_id:optional
}



ad_form -name insert_lastname -form {
    id:key
    {
        first_name:text(text)
        {label "First Names"}
        {help_text "Insert the person first names"}
        {html {size 40}}
    }
    {
        last_name:text(text)
        {label "Last Nameszzz"}
        {help_text "Insert the person last names"}
        {html {size 40}}
    }
} -new_data {
        db_dml do_insert "
            insert into myfirstpackage
              (first_name, last_name)
            values
              (:first_name, :last_name)"
} -after_submit {
    ad_returnredirect "index"
}



template::list::create \
    -name list_names \
    -elements {
        first_name {
            label "first name"
            display_col first_name
        }
        last_name {
            label "last name"
            display_col last_name
        }
    }