public function setMethod($method) {

		$method = strtoupper($method);
		if($method != 'GET' && $method != 'POST') {
			throw new HtmlFormException(sprintf("Invalid form method: '%s'.", $method), HtmlFormException::INVALID_METHOD);
		}
		$this->method = $method;

		return $this;

	}
public function setMethod($method) {

		$method = strtoupper($method);
		if($method != 'GET' && $method != 'POST') {
			throw new HtmlFormException(sprintf("Invalid form method: '%s'.", $method), HtmlFormException::INVALID_METHOD);
		}
		$this->method = $method;

		return $this;

	}
public function setMethod ( $ method ) { $ method = strtoupper ( $ method ) ; if ( $ method != 'GET' && $ method != 'POST' ) { throw new HtmlFormException ( sprintf ( "Invalid form method: '%s'." , $ method ) , HtmlFormException :: INVALID_METHOD ) ; } $ this -> method = $ method ; return $ this ; }
set submission method
'GET' and 'POST' are the only allowed values

@param string $method
@return HtmlForm
@throws HtmlFormException
set submission method GET and POST are the only allowed values