1573 Posts in 496 Topics by 483 members
Form Questions
SilverStripe Forums » Form Questions » set form method to POST
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 507 Views |
-
Re: set form method to POST

9 March 2011 at 9:46pm
It's POST by default. If you want to change the type $form->setFormMethod('POST');
http://api.silverstripe.org/2.4/forms/core/Form.html#methodsetFormMethod
-
Re: set form method to POST

9 March 2011 at 10:36pm
ehhh i had wrong name object in return
public function SearchForm() {
....return new Form(....);
}
i had
return new SearchForm(....) and it makes an error
btwg thanks for the method name to change the form method
| 507 Views | ||
|
Page:
1
|
Go to Top |


