{"id":305,"date":"2013-02-26T14:37:06","date_gmt":"2013-02-26T14:37:06","guid":{"rendered":"http:\/\/a1webdesignteam.com\/blog\/?p=305"},"modified":"2013-02-26T14:41:00","modified_gmt":"2013-02-26T14:41:00","slug":"store-permanently-array-php","status":"publish","type":"post","link":"https:\/\/a1webdesignteam.com\/blog\/store-permanently-array-php\/","title":{"rendered":"How to store value permanently in an array using php"},"content":{"rendered":"<div>\n<p>I want to store these submitted values. Can it be possible without database? using just array. I don&#8217;t want to store values for a session. Just for long time unless deleted.<\/p>\n<ol>\n<li><code>&lt;form id=\"form1\" name=\"form1\" method=\"post\" action=\"\"&gt;<\/code><\/li>\n<li><code>&lt;form id=\"form1\" name=\"form1\" method=\"post\" action=\"\"&gt;<\/code><\/li>\n<li><code><\/code><\/li>\n<li><code> &lt;p&gt;<\/code><\/li>\n<li><code> &lt;label for=\"num1\"&gt;Some text&lt;\/label&gt;<\/code><\/li>\n<li><code> &lt;input type=\"text\" name=\"num1\" id=\"num1\" \/&gt;<\/code><\/li>\n<li><code> &lt;\/p&gt;<\/code><\/li>\n<li><code> &lt;p&gt;<\/code><\/li>\n<li><code> &lt;label for=\"num2\"&gt;some text&lt;\/label&gt;<\/code><\/li>\n<li><code> &lt;input type=\"text\" name=\"num2\" id=\"num2\" \/&gt;<\/code><\/li>\n<li><code> &lt;\/p&gt;<\/code><\/li>\n<li><code> &lt;p&gt;<\/code><\/li>\n<li><code> &lt;input type=\"radio\" name=\"r\" id=\"add\" value=\"add\" \/&gt;<\/code><\/li>\n<li><code> &lt;label for=\"add\"&gt;Addition&lt;\/label&gt;<\/code><\/li>\n<li><code> &lt;\/p&gt;<\/code><\/li>\n<li><code> &lt;p&gt;<\/code><\/li>\n<li><code> &lt;input type=\"radio\" name=\"r\" id=\"sub\" value=\"sub\" \/&gt;<\/code><\/li>\n<li><code> &lt;label for=\"sub\"&gt;Subtraction&lt;\/label&gt;<\/code><\/li>\n<li><code> &lt;\/p&gt;<\/code><\/li>\n<li><code> &lt;p&gt;<\/code><\/li>\n<li><code> &lt;input type=\"radio\" name=\"r\" id=\"mul\" value=\"mul\" \/&gt;<\/code><\/li>\n<li><code> &lt;label for=\"mul\"&gt;Multiplication&lt;\/label&gt;<\/code><\/li>\n<li><code> &lt;\/p&gt;<\/code><\/li>\n<li><code> &lt;p&gt;<\/code><\/li>\n<li><code> &lt;input type=\"radio\" name=\"r\" id=\"div\" value=\"div\" \/&gt;<\/code><\/li>\n<li><code> &lt;label for=\"div\"&gt;Division&lt;\/label&gt;<\/code><\/li>\n<li><code> &lt;\/p&gt;<\/code><\/li>\n<li><code><\/code><\/li>\n<li><code> &lt;p&gt;<\/code><\/li>\n<li><code> &lt;label for=\"select\"&gt;select&lt;\/label&gt;<\/code><\/li>\n<li><code> &lt;select&gt;<\/code><\/li>\n<li><code> &lt;option value=\"volvo\"&gt;Volvo&lt;\/option&gt;<\/code><\/li>\n<li><code> &lt;option value=\"saab\"&gt;Saab&lt;\/option&gt;<\/code><\/li>\n<li><code> &lt;option value=\"opel\"&gt;Opel&lt;\/option&gt;<\/code><\/li>\n<li><code> &lt;option value=\"audi\"&gt;Audi&lt;\/option&gt;<\/code><\/li>\n<li><code>&lt;\/select&gt;<\/code><\/li>\n<li><code> &lt;\/p&gt;<\/code><\/li>\n<li><code>&lt;\/form&gt;<\/code><\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I want to store these submitted values. Can it be possible without database? using just array. I don&#8217;t want to store values for a session. Just for long time unless deleted. &lt;form id=&#8221;form1&#8243; name=&#8221;form1&#8243; method=&#8221;post&#8221; action=&#8221;&#8221;&gt; &lt;form id=&#8221;form1&#8243; name=&#8221;form1&#8243; method=&#8221;post&#8221; action=&#8221;&#8221;&gt; &lt;p&gt; &lt;label for=&#8221;num1&#8243;&gt;Some text&lt;\/label&gt; &lt;input type=&#8221;text&#8221; name=&#8221;num1&#8243; id=&#8221;num1&#8243; \/&gt; &lt;\/p&gt; &lt;p&gt; &lt;label for=&#8221;num2&#8243;&gt;some text&lt;\/label&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[9,7],"tags":[],"_links":{"self":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/305"}],"collection":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":0,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"wp:attachment":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}