Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -92,6 +92,7 @@ |
93 | 93 | protected $mSubmitText; |
94 | 94 | protected $mSubmitTooltip; |
95 | 95 | protected $mTitle; |
| 96 | + protected $mMethod = 'post'; |
96 | 97 | |
97 | 98 | protected $mUseMultipart = false; |
98 | 99 | protected $mHiddenFields = array(); |
— | — | @@ -375,7 +376,7 @@ |
376 | 377 | # Attributes |
377 | 378 | $attribs = array( |
378 | 379 | 'action' => $this->getTitle()->getFullURL(), |
379 | | - 'method' => 'post', |
| 380 | + 'method' => $this->mMethod, |
380 | 381 | 'class' => 'visualClear', |
381 | 382 | 'enctype' => $encType, |
382 | 383 | ); |
— | — | @@ -586,6 +587,14 @@ |
587 | 588 | function getTitle() { |
588 | 589 | return $this->mTitle; |
589 | 590 | } |
| 591 | + |
| 592 | + /** |
| 593 | + * Set the method used to submit the form |
| 594 | + * @param $method String |
| 595 | + */ |
| 596 | + public function setMethod( $method='post' ){ |
| 597 | + $this->mMethod = $method; |
| 598 | + } |
590 | 599 | |
591 | 600 | /** |
592 | 601 | * TODO: Document |