0

Hi I got a search filter page and I have a field that's a multiple select so it's value is an array. Is it possible to pass that input's value (w/c is an array) as a parameter or should I use sessions?

Thanks!

2
  • 4
    This question needs way more details, possibly peppered with some actual code. Commented Feb 16, 2010 at 6:55
  • Your choices are really just pass as parameter in the URL or pass as POST payload. Sessions are only helpful once the data is already received by the server, from the client. I'm afraid you'll need to provide significantly more details before anyone can assist. Commented Feb 17, 2010 at 17:59

1 Answer 1

1

your coding will be something like this:

$filters=array($param1,$param2,....);

$result=$this->ModelName->find('all',array('condtions'=>array('ModelName.fieldname'=>$filters)));

I hope this may work.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.