Tuesday, April 27, 2010

How to make a search form with Cakephp

How to write a search form with Cakephp , selecting results from
database

so that one can select certain fields and if none of the fields have
been selected then all results from the database are selected:


SEARCH FORM fields:


1) Select location: dropdown ( 1. all 2. New York 3. London )

2) Type: dropdown ( 1. all, 2. blue, 3. yellow, 4. green )

3) Select min and max price : min ( textarea insert minimum price
number - default value - 0 ) to ( textarea insert max price number )

4) Show results with images: checkbox ( check if search results
should include results with images or not )

5) Sort by: dropdown ( 1. none 2. price desc 3. price asc 4.
location 5. latest added )

6) Search ( search text link )

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: