Home >Backend Development >PHP Tutorial >A brief summary about PHP
We have all encountered this situation: a WEB application page has many search conditions, and sometimes one parameter corresponds to many values, or there is a strong superior-subordinate relationship, such as Rental Network: House type parameters include: one bedroom and one living room, one bedroom and two living rooms, etc. At this time, it is more troublesome to add the correct URL parameters to a certain plug selection conditioner. In order not to do repetitive work all day long, we wrote the following method. As an example, we use the example of Rental Network for reference (note that the following is only a demonstration, so there is no specification). Area: no limit (''), area one (area1), area two (area2), area three (area3)... Rent: no limit (''), less than 500 (rent1), 500-800 (rent2)... Type (style): no limit (''), apartment (style1), ordinary residence (style2).... Then the corresponding a tag href value is: ">No limit ">District 1 ">District 2 ….. ">No limit ">Apartment ">Ordinary residence These labels must be output dynamically in practice. As long as the values of key (request parameter) and value (request parameter) are consistent, it's ok :). Corrections welcome(More here: http://fc-lamp.blog.163.com/blog/static/17456668720128275633639/ ).
|