Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 0.60 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Passing form values to controller action params in CakePHP
  2. < form class="well form-horizontal" id="myform"
  3.            method="get" action="/mycontroller/action" >
  4.         <select name="type" id="type">
  5.             <option value="mike" selected="selected">
  6.                                 mickey bricks</option>
  7.             <option value="albie">albert</option>
  8.         </select>
  9.  
  10.         <input type="text" name="key" class="input-xlarge"
  11.                      id="key" required="required">
  12.  
  13.         <button type="submit" class="btn btn-primary" id="submit">
  14.             submit
  15.         </button>
  16.   </form>