17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 653 Views |
-
write value form in external database

22 November 2008 at 4:06am
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);
}
| 653 Views | ||
|
Page:
1
|
Go to Top |

