{"id":2227,"date":"2013-06-27T05:49:35","date_gmt":"2013-06-26T19:49:35","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=2227"},"modified":"2013-06-27T05:49:35","modified_gmt":"2013-06-26T19:49:35","slug":"perl-form-validation-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/perl-form-validation-primer-tutorial\/","title":{"rendered":"Perl Form Validation Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Perl\/Perl_Form_Validation.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Perl Form Validation Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Perl\/Perl_Form_Validation.jpg\" title=\"Perl Form Validation Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">Perl Form Validation Primer Tutorial<\/p><\/div>\n<p>In tutorial here we use Perl code to validate an HTML form element&#8217;s input tag data using regular expressions, as described by <a target=_blank title='Regular expressions' href='http:\/\/en.wikipedia.org\/wiki\/Regular_expression'>Wikipedia<\/a> below:<\/p>\n<blockquote><p>In computing, a regular expression (abbreviated regex or regexp) is a sequence of text characters, some of which are understood to be metacharacters with symbolic meaning, and some of which have their literal meaning, that together can automatically identify textual material of a given pattern, or process a number of instances of it that can vary from a precise equality to a very general similarity of the pattern. The pattern sequence itself is an expression that is a statement in a language designed specifically to represent prescribed targets in the most concise and flexible way to direct the automation of text processing of general text files, specific textual forms, or of random input strings. A regular expression patterns a match to a string. It is employed in a search to identify text for further processing, such as displaying the match, or altering it; or it is employed to simply inform of the location or count. The concept arose in the 1950s, when Kleene formalized the description of a regular language, and came into common use with the Unix text processing utilities ed, an editor, and grep (global regular expression print), a filter.<\/p><\/blockquote>\n<p>This Perl form validation client-side technique uses a GET method, but if you want to hide your data and use a POST method, you may need to do form validation from the server-side using  <a target=_blank title='Alternate Perl client-side Form Validation via GET method' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=1440'>PHP<\/a> , for example.<\/p>\n<p>By the way the format of the telephone number asked for by this tutorial is for an Australian telephone number which is a 2 or 3 digit area code followed by an 8 digit number.   If you can&#8217;t get through maybe you can just listen to a <a target=_blank title=\"Ring, Ring, Why don't you give me a call\" href='http:\/\/www.youtube.com\/watch?v=-aRBqoZN9rA'>song<\/a>.<\/p>\n<p><a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Perl\/validatepl.html_GETME'>Download HTML source code and rename to validatepl.html<\/a><br \/>\n<a target=_blank href='http:\/\/www.rjmprogramming.com.au\/Perl\/validatepl.cgi_GETME'>Download Perl programming source code and rename to validatepl.cgi<\/a><\/p>\n<p>Regarding this  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/Perl\/Perl_Form_Validation.jpg'>topic<\/a> I really like <em>&#8220;Perl and CGI for the World Wide Web&#8221; by Elizabeth Castro<\/em> <\/p>\n<p><!--p>Here is a link regarding <a target=_blank title='Perl form validation' href='http:\/\/www.unix.com\/shell-programming-scripting\/47005-form-validation-perl.html'>Perl Form Validation<\/a>.<\/p-->\n<p>In researching this tutorial topic found the following two sites very useful &#8230; <a target=_blank title='Hidden fields' href='http:\/\/sislands.com\/coin70\/week7\/hiddenpls.htm'>Hidden fields<\/a>, <a target=_blank title='Online Perl Interpreter and Debugging Tool' href='http:\/\/ideone.com\/nWGu7G'>Online Perl Interpreter and Debugging Tool<\/a> &#8230; so, thanks.<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d2227' onclick='var dv=document.getElementById(\"d2227\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?s=Perl\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d2227' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In tutorial here we use Perl code to validate an HTML form element&#8217;s input tag data using regular expressions, as described by Wikipedia below: In computing, a regular expression (abbreviated regex or regexp) is a sequence of text characters, some &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/perl-form-validation-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,37],"tags":[453,576,916,997,1040,1319],"class_list":["post-2227","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-form-validation","tag-html","tag-perl","tag-programming","tag-regex","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/2227"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=2227"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/2227\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=2227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=2227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=2227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}