{"id":1666,"date":"2018-07-31T09:58:27","date_gmt":"2018-07-31T08:58:27","guid":{"rendered":"http:\/\/www.cutweb.org.uk\/new\/?page_id=1666"},"modified":"2019-07-24T21:27:36","modified_gmt":"2019-07-24T20:27:36","slug":"competition-entry","status":"publish","type":"page","link":"http:\/\/www.cutweb.org.uk\/new\/index.php\/competition-entry\/","title":{"rendered":"Competition Entry"},"content":{"rendered":"<p>[insert_php]<\/p>\n<p>$message = &#8220;The following competition entry was submitted:\\n&#8221;;<\/p>\n<p>$message .= &#8220;Name : &#8221; . $_POST[&#8216;Name&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Email Address : &#8221; . $_POST[&#8216;Email&#8217;] . &#8220;\\n&#8221;;<\/p>\n<p>$message .= &#8220;Pic1 : &#8221; . $_POST[&#8216;pic1&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic2 : &#8221; . $_POST[&#8216;pic2&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic3 : &#8221; . $_POST[&#8216;pic3&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic4 : &#8221; . $_POST[&#8216;pic4&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic5 : &#8221; . $_POST[&#8216;pic5&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic6 : &#8221; . $_POST[&#8216;pic6&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic7 : &#8221; . $_POST[&#8216;pic7&#8217;] . &#8220;\\n&#8221;;<\/p>\n<p>$message .= &#8220;Pic9 : &#8221; . $_POST[&#8216;pic9&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic10 : &#8221; . $_POST[&#8216;pic10&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic11 : &#8221; . $_POST[&#8216;pic11&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic12 : &#8221; . $_POST[&#8216;pic12&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic13 : &#8221; . $_POST[&#8216;pic13&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic14 : &#8221; . $_POST[&#8216;pic14&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic15 : &#8221; . $_POST[&#8216;pic15&#8217;] . &#8220;\\n&#8221;;<br \/>\n$message .= &#8220;Pic16 : &#8221; . $_POST[&#8216;pic16&#8217;] . &#8220;\\n&#8221;;<\/p>\n<p>$copyto = $_POST[&#8216;Email&#8217;];<br \/>\n$cc =&#8221;;<br \/>\nif (filter_var($copyto, FILTER_VALIDATE_EMAIL)) {<br \/>\n$cc = &#8220;Cc: $copyto \\r\\n&#8221;;<br \/>\n}<br \/>\n$to = &#8220;webmaster@cutweb.org.uk&#8221;;<\/p>\n<p>$headers = &#8220;From: webmaster@cutweb.org.uk \\r\\n&#8221;;<br \/>\n$headers .= $cc;<br \/>\n$email_subject = &#8220;Competition Entry&#8221;;<br \/>\n$email_body = $message;<\/p>\n<p>\/\/ mail($to,$email_subject,$email_body,$headers);<\/p>\n<p>echo &#8220;Thank you &#8221; . $_POST[&#8216;Name&#8217;] . &#8221; for your submission which will be acknowledged in due course.&#8221;;<\/p>\n<p>[\/insert_php]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[insert_php] $message = &#8220;The following competition entry was submitted:\\n&#8221;; $message .= &#8220;Name : &#8221; . $_POST[&#8216;Name&#8217;] . &#8220;\\n&#8221;; $message .= &#8220;Email Address : &#8221; . $_POST[&#8216;Email&#8217;] . &#8220;\\n&#8221;; $message .= &#8220;Pic1 : &#8221; . $_POST[&#8216;pic1&#8217;] . &#8220;\\n&#8221;; $message .= &#8220;Pic2 : &#8221; . $_POST[&#8216;pic2&#8217;] . &#8220;\\n&#8221;; $message .= &#8220;Pic3 : &#8221; . $_POST[&#8216;pic3&#8217;] . &#8220;\\n&#8221;; &hellip; <a href=\"http:\/\/www.cutweb.org.uk\/new\/index.php\/competition-entry\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Competition Entry&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","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,"ngg_post_thumbnail":0,"footnotes":""},"_links":{"self":[{"href":"http:\/\/www.cutweb.org.uk\/new\/index.php\/wp-json\/wp\/v2\/pages\/1666"}],"collection":[{"href":"http:\/\/www.cutweb.org.uk\/new\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.cutweb.org.uk\/new\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.cutweb.org.uk\/new\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cutweb.org.uk\/new\/index.php\/wp-json\/wp\/v2\/comments?post=1666"}],"version-history":[{"count":4,"href":"http:\/\/www.cutweb.org.uk\/new\/index.php\/wp-json\/wp\/v2\/pages\/1666\/revisions"}],"predecessor-version":[{"id":1722,"href":"http:\/\/www.cutweb.org.uk\/new\/index.php\/wp-json\/wp\/v2\/pages\/1666\/revisions\/1722"}],"wp:attachment":[{"href":"http:\/\/www.cutweb.org.uk\/new\/index.php\/wp-json\/wp\/v2\/media?parent=1666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}