{"id":50857,"date":"2020-11-12T03:01:27","date_gmt":"2020-11-11T17:01:27","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=50857"},"modified":"2020-11-11T12:14:25","modified_gmt":"2020-11-11T02:14:25","slug":"favourites-poll-email-moderation-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/favourites-poll-email-moderation-primer-tutorial\/","title":{"rendered":"Favourites Poll Email Moderation Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/favourites_midair.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Favourites Poll Email Moderation Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/PHP\/favourites_email_moderation.gif\" title=\"Favourites Poll Email Moderation Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Favourites Poll Email Moderation Primer Tutorial<\/p><\/div>\n<p>Any web application that asks for user input and stores it from an online user via an online webpage &#8230;<\/p>\n<ul>\n<li>will need to be coded in a serverside language &#8230; check &#8230; we&#8217;ll use PHP<\/li>\n<li>ideally should have an interim &#8220;moderation mechanism&#8221; &#8230; check &#8230; we&#8217;ll use Email (for one admin<font size=1>istration<\/font> user)<\/li>\n<li>will need a &#8220;database type of storage mechanism&#8221; to store (the) <i>too many entries<\/i> (that may happen) for localStorage or Cookies (methodologies) &#8230; check &#8230; will not use a large database product such as MySql but will use &#8230;\n<ol>\n<li>a flat file<\/li>\n<li>that is readable<\/li>\n<li>that is ascii<\/li>\n<li>that <i>doubles as webpage content<\/i> (ie. takes the form of HTML) &#8230; yet &#8230;<\/li>\n<li><font size=1>of itself, <\/font>is hidden to your non-admin<font size=1>istration<\/font> user &#8230; just by virtue of &#8230;<\/li>\n<li>residing &#8220;outside the public domain parts of the RJM Programming domain&#8221; &#8230; in &#8230;<\/li>\n<li>a chosen $HOME (for an RJM Programming user account) folder on the RJM Programming web server &#8230; but &#8230;<\/li>\n<li>an admin<font size=1>istration<\/font> user can use the PHP to pull in that &#8220;outside the public domain parts of the RJM Programming domain&#8221; file content, when asked for <font size=1>(which we&#8217;ve decided, is any time anyone from the public accesses our &#8220;Favourites Poll&#8221;)<\/font><\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p>Yes, this is a nuance of data storage we&#8217;ve never tried before, it&#8217;s weirdness being that if that content could be expressed in a web browser address bar URL, any web browser web inspector would have a field day telling you all about it, and yet it is not accessible directly by the usual online user.  We realize there is nothing to accessing the PHP to effectively access it, but that is because of a genuine interest from an interested player, and we see this as a nuanced difference in data storage, at least for us here at RJM Programming.<\/p>\n<p>Perhaps you&#8217;d like to examine the PHP <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/favourites_midair.php_GETME\" title=\"favourites_midair.php\">favourites_midair.php<\/a> code for <font size=1>(the obviously optional)<\/font> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/favourites_midair.php\" title=\"Click picture\">Favourites Poll<\/a> and\/or see the <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/favourites_email_moderation.gif\" title=\"Tutorial picture\">animated GIF<\/a> presentation of us polling ourself to get the ball rolling!<\/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='#d50857' onclick='var dv=document.getElementById(\"d50857\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/home\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d50857' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Any web application that asks for user input and stores it from an online user via an online webpage &#8230; will need to be coded in a serverside language &#8230; check &#8230; we&#8217;ll use PHP ideally should have an interim &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/favourites-poll-email-moderation-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":[3418,61,3483,299,355,3484,418,2137,2803,932,961,997,1319,1891,1411,1418],"class_list":["post-50857","post","type-post","status-publish","format-standard","hentry","category-elearning","category-tutorials","tag-admin","tag-administration","tag-data-storage","tag-database-2","tag-domain","tag-favourites","tag-file","tag-flat-file","tag-home","tag-php","tag-poll","tag-programming","tag-tutorial","tag-user","tag-web-server","tag-webpage"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/50857"}],"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=50857"}],"version-history":[{"count":3,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/50857\/revisions"}],"predecessor-version":[{"id":50860,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/50857\/revisions\/50860"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=50857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=50857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=50857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}