{"id":587,"date":"2014-12-19T06:21:03","date_gmt":"2014-12-19T06:21:03","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=587"},"modified":"2014-12-19T06:46:45","modified_gmt":"2014-12-19T06:46:45","slug":"search-form-parameter-checking","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/search-form-parameter-checking\/","title":{"rendered":"Search Form Parameter Checking"},"content":{"rendered":"<p><strong>Simple Search based on Three Parameters<\/strong><\/p>\n<p><em>The Search should happen even when one element of the form is not Empty.<\/em><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/codethataint.com\/blog\/wp-content\/uploads\/2014\/12\/Firefox_Screenshot_2014-12-19T06-39-23.060Z.png\" alt=\"\" \/><\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n\r\nisParamNotEmpty = false;\r\n\r\nif(param1.isNotEmpty())\r\n{\r\n  .\r\n  .\r\n  Other Coding Lines\r\n  .\r\n  isParamNotEmpty = true;\r\n}\r\n\r\nif(param2.isNotEmpty())\r\n{\r\n  .\r\n  isParamNotEmpty = true;\r\n}\r\n\r\nif(param3.isNotEmpty())\r\n{\r\n  .\r\n  . \r\n  isParamNotEmpty = true;\r\n}\r\n\r\nif(isParamNotEmpty)\r\n{ \r\n  doSearch(); \r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Simple Search based on Three Parameters The Search should happen even when one element of the form is not Empty. isParamNotEmpty = false; if(param1.isNotEmpty()) { . . Other Coding Lines . isParamNotEmpty = true; } if(param2.isNotEmpty()) { . isParamNotEmpty = true; } if(param3.isNotEmpty()) { . . isParamNotEmpty = true; } if(isParamNotEmpty) { doSearch(); }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84],"tags":[],"class_list":["post-587","post","type-post","status-publish","format-standard","hentry","category-software-design"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":4,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":592,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/587\/revisions\/592"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}