di
Need a collection of many functions, so I do this. .
Oh, maybe you will feel that the method is stupid, but it is really easy to use, but you can use simpler methods, don't need so many search form data, but this is more impaired, it is beautiful. .
// // support universal search bar template, no page refresh // Author: World Kid twt326@163.com// reprint or modify Keep the original copyright, thank you
// This page is used to generate search form data, or you can make a function or class.
php // Three parameters: / * T1 Select Search Engine Default Baidu T2 Select Large Categories Default Web Search MB Selection Template Default 1 * / IF ($ _Get [T1] == "Baidu" || Empty ($ _ Get [T1]) $ TTYPE = "baidu"; elseif ($ _ get [t1] == "google") $ TTYPE = "Google"; Elseif ($ _ get [T1] == "Yisou") $ TTYPE = "Yisou "Else $ TTYPE =" baidu "; if (Empty ($ _ get [t2])) $ T2TYPE ==" Web "; Else $ T2TYPE = $ _ get [t2]; if (Empty ($ _ get [MB])) $ TMB = 2; Else $ TMB = $ _ get [MB];> php // Define Template, where there is no double quotation mark or wrap / / / according to URL parameter MB to determine which template to display form // There are four variables in the template / * {forms} represent the