# Call another page according to the option id

**URL:** <https://discourse.cakephp.org/t/call-another-page-according-to-the-option-id/4580>\
**Category:** Need Help\
**Created:** [July 16, 2018, 6:57pm UTC](https://discourse.cakephp.org/t/call-another-page-according-to-the-option-id/4580 "2018-07-16T18:57:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexandre\_noro](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Alexandre\_noro](https://discourse.cakephp.org/u/Alexandre_noro)\
**Post date:** [July 16, 2018, 6:57pm UTC](https://discourse.cakephp.org/t/call-another-page-according-to-the-option-id/4580/1 "2018-07-16T18:57:41Z")

</div>

$this-\>loadModel(‘TodasReceitas’);  
$todasReceitas = $this-\>TodasReceitas-\>find(‘all’)-\>where([  
‘TodasReceitas.id’=\> 6  
]);

call another page according to the id of the selected option and do not need to leave set which id I want ie the option that is chosen, will open the page according to the id of the chosen option

---

<div class="post-metadata">

**Author:** ![sathishcake](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@sathishcake](https://discourse.cakephp.org/u/sathishcake)\
**Post date:** [July 17, 2018, 4:05am UTC](https://discourse.cakephp.org/t/call-another-page-according-to-the-option-id/4580/2 "2018-07-17T04:05:02Z")

</div>

Refer this page [click](https://book.cakephp.org/3.0/en/views/helpers/form.html)  
It helps you.

---

<div class="post-metadata">

**Author:** ![Alexandre\_noro](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Alexandre\_noro](https://discourse.cakephp.org/u/Alexandre_noro)\
**Post date:** [July 23, 2018, 1:26pm UTC](https://discourse.cakephp.org/t/call-another-page-according-to-the-option-id/4580/3 "2018-07-23T13:26:53Z")

</div>

thank you.  
I was able to solve
