public function add_param($name, $value, $id = null) {
        if (!$id) {
            $id = $name;
        }
        $this->params[] = [
            'name' => $name,
            'value' => $value,
            'id' => $id
        ];
    }
public function add_param($name, $value, $id = null) {
        if (!$id) {
            $id = $name;
        }
        $this->params[] = [
            'name' => $name,
            'value' => $value,
            'id' => $id
        ];
    }
public function add_param ( $ name , $ value , $ id = null ) { if ( ! $ id ) { $ id = $ name ; } $ this -> params [ ] = [ 'name' => $ name , 'value' => $ value , 'id' => $ id ] ; }
Add a parameter to submit with the form.

@param string $name The parameter name.
@param string $value The parameter value.
@param string $id The parameter ID.
Add a parameter to submit with the form .