{"id":1087,"date":"2018-11-28T10:21:36","date_gmt":"2018-11-28T03:21:36","guid":{"rendered":"http:\/\/www.todsapon.com\/story\/?p=1087"},"modified":"2019-12-03T17:30:07","modified_gmt":"2019-12-03T10:30:07","slug":"text-input-limit-number-only-php","status":"publish","type":"post","link":"http:\/\/www.todsapon.com\/story\/programmer\/text-input-limit-number-only-php","title":{"rendered":"Function PHP \u0e1b\u0e49\u0e2d\u0e19\u0e04\u0e48\u0e32 \u0e25\u0e07\u0e43\u0e19\u0e0a\u0e48\u0e2d\u0e07 Text Input \u0e43\u0e2b\u0e49\u0e41\u0e2a\u0e14\u0e07\u0e1c\u0e25\u0e04\u0e48\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19"},"content":{"rendered":"<div id=\"attachment_970\" style=\"width: 680px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/programmer.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-970\" class=\"size-full wp-image-970\" src=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/programmer.jpg\" alt=\"\u0e43\u0e0a\u0e49 PHP \u0e15\u0e34\u0e14\u0e15\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e1b\u0e49\u0e2d\u0e19\u0e04\u0e48\u0e32 \u0e25\u0e07\u0e43\u0e19\u0e0a\u0e48\u0e2d\u0e07 Text Input \u0e44\u0e14\u0e49\u0e41\u0e04\u0e48\u0e04\u0e48\u0e32\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 Function PHP\u0e2d SAP \u0e1c\u0e48\u0e32\u0e19 RFC \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Web Services\" width=\"670\" height=\"320\" srcset=\"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/programmer.jpg 670w, http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/programmer-300x143.jpg 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/a><p id=\"caption-attachment-970\" class=\"wp-caption-text\">\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e1b\u0e49\u0e2d\u0e19\u0e04\u0e48\u0e32 \u0e25\u0e07\u0e43\u0e19\u0e0a\u0e48\u0e2d\u0e07 Text Input \u0e44\u0e14\u0e49\u0e41\u0e04\u0e48\u0e04\u0e48\u0e32\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 Function PHP<\/p><\/div>\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1b\u0e49\u0e2d\u0e19\u0e04\u0e48\u0e32 \u0e25\u0e07\u0e43\u0e19\u0e0a\u0e48\u0e2d\u0e07 Text Input \u0e2b\u0e23\u0e37\u0e2d\u0e0a\u0e48\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e42\u0e14\u0e22\u0e2a\u0e48\u0e27\u0e19\u0e21\u0e32\u0e01 Text Input \u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 \u0e44\u0e14\u0e49\u0e17\u0e38\u0e01\u0e15\u0e31\u0e27 \u0e17\u0e31\u0e49\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02, \u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e41\u0e25\u0e30\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30 \u0e2a\u0e34\u0e48\u0e07\u0e21\u0e31\u0e19\u0e08\u0e30\u0e21\u0e35\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e40\u0e2d\u0e32\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 Text Input \u0e44\u0e1b\u0e25\u0e07\u0e43\u0e19 filed \u0e17\u0e35\u0e48\u0e16\u0e39\u0e01 Set \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 \u0e40\u0e0a\u0e48\u0e19 float or integer \u0e43\u0e19 Table \u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e01\u0e47\u0e04\u0e37\u0e2d\u0e40\u0e01\u0e34\u0e14 Error \u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e23\u0e37\u0e2d\u0e41\u0e01\u0e49\u0e44\u0e02\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e2b\u0e49 \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19 \u0e15\u0e49\u0e2d\u0e07\u0e2b\u0e32\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e2b\u0e49\u0e04\u0e19\u0e1b\u0e49\u0e2d\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e31\u0e49\u0e19 \u0e23\u0e39\u0e49\u0e27\u0e48\u0e49\u0e32\u0e0b\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e40\u0e02\u0e32\u0e1b\u0e49\u0e2d\u0e19\u0e19\u0e31\u0e49\u0e19 \u0e1c\u0e34\u0e14\u0e21\u0e2b\u0e31\u0e19\u0e15\u0e4c<br \/>\n<!--more--><\/p>\n<p><strong>\u0e04\u0e33\u0e16\u0e32\u0e21<\/strong> \u0e27\u0e34\u0e18\u0e35\u0e17\u0e35\u0e48\u0e08\u0e30\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e27\u0e48\u0e32\u0e40\u0e02\u0e32\u0e1b\u0e49\u0e2d\u0e19\u0e1c\u0e34\u0e14\u0e19\u0e31\u0e49\u0e19 \u0e21\u0e31\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e17\u0e33\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e23?<br \/>\n<strong>\u0e15\u0e2d\u0e1a<\/strong> \u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e01\u0e23\u0e30\u0e17\u0e33\u0e02\u0e2d\u0e07 filed \u0e19\u0e31\u0e49\u0e19\u0e17\u0e38\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07\u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23 \u0e1b\u0e49\u0e2d\u0e19<\/p>\n<p><strong>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 (javascript)<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nfunction isNumeric(elem, helperMsg)\r\n{\r\n        var numericExpression = \/^[0-9]+$\/;\r\n        if(elem.value.match(numericExpression)){\r\n                return true;\r\n        }else{\r\n                alert(helperMsg);\r\n                elem.value=elem.value.substr(0,elem.value.length-1);\r\n                elem.focus();\r\n                return false;\r\n        }\r\n}<\/pre>\n<p><strong>\u0e27\u0e34\u0e18\u0e35\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&amp;lt;input size=&amp;quot;15&amp;quot; type=&amp;quot;text&amp;quot; name=&amp;quot;total&amp;quot; class=&amp;quot;input&amp;quot; onKeyup=&amp;quot;JavaScript:return isNumeric(this,'\u0e01\u0e23\u0e38\u0e13\u0e32\u0e1b\u0e49\u0e2d\u0e19\u0e08\u0e33\u0e19\u0e27\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e04\u0e23\u0e31\u0e1a');&amp;quot; \/&amp;gt;\r\n<\/pre>\n<p>\u0e1b\u0e25. \u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1b\u0e49\u0e2d\u0e19\u0e08\u0e38\u0e14\u0e17\u0e28\u0e19\u0e34\u0e22\u0e21\u0e44\u0e14\u0e49 \u0e43\u0e2b\u0e49\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n        var numericExpression = \/^[0-9.]+$\/;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1b\u0e49\u0e2d\u0e19\u0e04\u0e48\u0e32 \u0e25\u0e07\u0e43\u0e19\u0e0a\u0e48\u0e2d\u0e07 Text Input \u0e2b\u0e23\u0e37\u0e2d\u0e0a\u0e48\u0e2d\u0e07\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e42\u0e14\u0e22\u0e2a\u0e48\u0e27\u0e19\u0e21\u0e32\u0e01 Text Input \u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e23\u0e31\u0e1a\u0e04\u0e48\u0e32 \u0e44\u0e14\u0e49\u0e17\u0e38\u0e01\u0e15\u0e31\u0e27 \u0e17\u0e31\u0e49\u0e07\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02, \u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e41\u0e25\u0e30\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30 \u0e2a\u0e34\u0e48\u0e07\u0e21\u0e31\u0e19\u0e08\u0e30\u0e21\u0e35\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e43\u0e19\u0e01\u0e23\u0e13\u0e35\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e40\u0e2d\u0e32\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 Text Input \u0e44\u0e1b\u0e25\u0e07\u0e43\u0e19 filed \u0e17\u0e35\u0e48\u0e16\u0e39\u0e01 Set \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 \u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 \u0e40\u0e0a\u0e48\u0e19 float or integer \u0e43\u0e19 Table \u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e01\u0e47\u0e04\u0e37\u0e2d\u0e40\u0e01\u0e34\u0e14 Error \u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e17\u0e33\u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e23\u0e37\u0e2d\u0e41\u0e01\u0e49\u0e44\u0e02\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e2b\u0e49 \u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19 \u0e15\u0e49\u0e2d\u0e07\u0e2b\u0e32\u0e27\u0e34\u0e18\u0e35\u0e01\u0e32\u0e23\u0e17\u0e35\u0e48\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e2b\u0e49\u0e04\u0e19\u0e1b\u0e49\u0e2d\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e31\u0e49\u0e19 \u0e23\u0e39\u0e49\u0e27\u0e48\u0e49\u0e32\u0e0b\u0e36\u0e48\u0e07\u0e17\u0e35\u0e48\u0e40\u0e02\u0e32\u0e1b\u0e49\u0e2d\u0e19\u0e19\u0e31\u0e49\u0e19 \u0e1c\u0e34\u0e14\u0e21\u0e2b\u0e31\u0e19\u0e15\u0e4c<\/p>\n","protected":false},"author":1,"featured_media":970,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[250,384],"tags":[330,329],"class_list":["post-1087","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programmer","category-archive-blog","tag-function-php","tag-text-input"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"http:\/\/www.todsapon.com\/story\/wp-content\/uploads\/2018\/11\/programmer.jpg","jetpack_shortlink":"https:\/\/wp.me\/p5sZE6-hx","amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1087","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/comments?post=1087"}],"version-history":[{"count":2,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1087\/revisions"}],"predecessor-version":[{"id":1520,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/posts\/1087\/revisions\/1520"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/media\/970"}],"wp:attachment":[{"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/media?parent=1087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/categories?post=1087"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.todsapon.com\/story\/wp-json\/wp\/v2\/tags?post=1087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}