# Form Doesn't send Post

**URL:** <https://discourse.cakephp.org/t/form-doesnt-send-post/3401>\
**Category:** Need Help\
**Tags:** behavior\
**Created:** [October 26, 2017, 4:24pm UTC](https://discourse.cakephp.org/t/form-doesnt-send-post/3401 "2017-10-26T16:24:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvaro.luzzi](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@alvaro.luzzi](https://discourse.cakephp.org/u/alvaro.luzzi)\
**Post date:** [October 26, 2017, 4:24pm UTC](https://discourse.cakephp.org/t/form-doesnt-send-post/3401/1 "2017-10-26T16:24:59Z")

</div>

I have multiple small forms to send me to different views or to call some actions in the controles, somehow everyone that calls a controller works fine, but when I try to redirect one and add a parameter it returns to the original page without any parameters set.

echo $this-\>Form-\>create(‘Form 1’, array(‘url’ =\> ‘/some\_controller\_action\_set\_route?parameter=’.$variable));  
echo $this-\>Form-\>button(’’, array( ‘class’ =\> ‘btn btn-default’));  
echo $this-\>Form-\>end();  
echo $this-\>Form-\>create(‘Form 2’, array(‘url’ =\> ‘/Controller/Action?parameter=’.$variable));  
echo $this-\>Form-\>button(’’, array(‘class’ =\> ‘btn btn-danger’));  
echo $this-\>Form-\>end();

The first one doesn’t work, it automaticly sends me back to /some\_controller\_action\_set\_route but if I check the network tab of the Google Chrome DevTools it show the redirect correctly but inmediatly after it redirects.

---

<div class="post-metadata">

**Author:** ![xaphalanx](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/xaphalanx/32/575_2.png) [@xaphalanx](https://discourse.cakephp.org/u/xaphalanx)\
**Post date:** [October 27, 2017, 6:14pm UTC](https://discourse.cakephp.org/t/form-doesnt-send-post/3401/2 "2017-10-27T18:14:40Z")

</div>

What’s your controller code?
