Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » write value form in external database

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 771 Views
  • bebabeba
    Community Member
    192 Posts

    write value form in external database Link to this post

    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);

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.