Skip to content

Commit

Permalink
Updating docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 13, 2011
1 parent 3675e73 commit 523b1b6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -1287,9 +1287,10 @@ public function button($title, $options = array()) {
}

/**
* Create a `<button>` tag with `<form>` using POST method.
* Create a `<button>` tag with a surrounding `<form>` that submits via POST.
*
* This method creates an element <form>. So do not use this method in some opened form.
* This method creates a `<form>` element. So do not use this method in some opened form.
* Instead use FormHelper::submit() or FormHelper::button() to create buttons inside opened forms.
*
* ### Options:
*
Expand All @@ -1315,13 +1316,16 @@ public function postButton($title, $url, $options = array()) {
}

/**
* Creates an HTML link, but access the url using method POST. Requires javascript enabled in browser.
* Creates an HTML link, but access the url using method POST.
* Requires javascript to be enabled in browser.
*
* This method creates an element <form>. So do not use this method in some opened form.
* This method creates a `<form>` element. So do not use this method inside an existing form.
* Instead you should add a submit button using FormHelper::submit()
*
* ### Options:
*
* - `data` - Array with key/value to pass in input hidden
* - `confirm` - Can be used instead of $confirmMessage.
* - Other options is the same of HtmlHelper::link() method.
* - The option `onclick` will be replaced.
*
Expand Down

0 comments on commit 523b1b6

Please sign in to comment.