src/eforms/classes/Form.php
protected function setActionTags()
    {
        $form = $this->xml->getElementsByTagName('form')->item(0);
        $div = $this->xml->createElement('div');

        $input = $this->xml->createElement('input');
        $input->setAttribute('type', 'hidden');
        $input->setAttribute('name', 'ext');
        $input->setAttribute('value', $this->owner->name);
        $div->appendChild($input);

        $input = $this->xml->createElement('input');
        $input->setAttribute('type', 'hidden');
        $input->setAttribute('name', 'form');
        $input->setAttribute('value', $this->name);
        $div->appendChild($input);

        $form->appendChild($div);
    }
protected function setActionTags()
    {
        $form = $this->xml->getElementsByTagName('form')->item(0);
        $div = $this->xml->createElement('div');

        $input = $this->xml->createElement('input');
        $input->setAttribute('type', 'hidden');
        $input->setAttribute('name', 'ext');
        $input->setAttribute('value', $this->owner->name);
        $div->appendChild($input);

        $input = $this->xml->createElement('input');
        $input->setAttribute('type', 'hidden');
        $input->setAttribute('name', 'form');
        $input->setAttribute('value', $this->name);
        $div->appendChild($input);

        $form->appendChild($div);
    }
protected function setActionTags ( ) { $ form = $ this -> xml -> getElementsByTagName ( 'form' ) -> item ( 0 ) ; $ div = $ this -> xml -> createElement ( 'div' ) ; $ input = $ this -> xml -> createElement ( 'input' ) ; $ input -> setAttribute ( 'type' , 'hidden' ) ; $ input -> setAttribute ( 'name' , 'ext' ) ; $ input -> setAttribute ( 'value' , $ this -> owner -> name ) ; $ div -> appendChild ( $ input ) ; $ input = $ this -> xml -> createElement ( 'input' ) ; $ input -> setAttribute ( 'type' , 'hidden' ) ; $ input -> setAttribute ( 'name' , 'form' ) ; $ input -> setAttribute ( 'value' , $ this -> name ) ; $ div -> appendChild ( $ input ) ; $ form -> appendChild ( $ div ) ; }
Adds hidden inputs to form
Adds hidden inputs to form