Hi!
I create a page with form. I want take the value of this form to memorize that in an external database. My problem is how implement the function that write forma value in my sql external database.
this are my form:
function Ricettivita() {
// Create fields
$fields1 = new FieldSet(
new TextField(
$name = "nome",
$title = "Nome da ricercare:",
$value = ""
),
new CheckboxSetField(
$name_t = "tipologia",
$title = "Tipologia:",
$source = array(
"1" => "Hotel",
"2" => "Agriturismo",
"3" => "Bed & Brekfast",
"4" => "Residence",
"5" => "Ospitalitàsu richiesta"
),
$value = ""
)
);
// Create actions
$actions = new FieldSet(
new FormAction('doRicettivita', 'CERCA')
);
return new Form($this, 'Ricettivita', $fields1, $actions);
}