{"id":14631,"date":"2019-03-13T20:28:10","date_gmt":"2019-03-13T17:28:10","guid":{"rendered":"https:\/\/www.bein.com\/en\/?page_id=14631"},"modified":"2025-05-20T10:37:58","modified_gmt":"2025-05-20T07:37:58","slug":"sign-up-to-our-mailing-list","status":"publish","type":"page","link":"https:\/\/www.bein.com\/en\/sign-up-to-our-mailing-list\/","title":{"rendered":"Sign up to our mailing list"},"content":{"rendered":"<pre><script src=\"https:\/\/www.google.com\/recaptcha\/api.js\" async=\"\" defer=\"\"><\/script>\n<script src=\"https:\/\/code.jquery.com\/jquery-3.7.1.js\"><\/script>\n<style type=\"text\/css\">\npre{display:none}\n\n.qiff_btn{background-color:#6b309e;color:#fff} .qiff_btn:hover, .qiff_btn:focus, .qiff_btn:active{background-color:#6b309e;color:#fff}\n.qiff_field{border: 1px solid #b7b7b8;padding: 0 10px;background-color: #FFF;} \n\n.chkbtn{width:30px;height:30px;border:1px solid #000;float:left;margin:0 auto;cursor:pointer}\n.chkbtnlabel{float:left;padding-left:10px;font-size:20px}\n#info{font-size:18px}\nli{ list-style-type: none}\n.err{color:red}\n.done{color:#5cb85c}\n.h10{height:10px;clear:both}\n<\/style>\n<\/pre>\n<div class=\"container\">\n<form id=\"newsletter-form\">\n<div class=\"row\">\n<div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\n<h3>Join our subscribers list to receive the latest news, updates and exclusive offers every week.<\/h3>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-xs-12 col-sm-12 col-md-6 col-lg-6\">\n<div><label for=\"email\">Email address:<\/label><br \/>\n<input tabindex=\"1\" id=\"email\" class=\"form-control qiff_field\" maxlength=\"150\" name=\"email\" type=\"text\" \/><\/div>\n<div class=\"h10\"><\/div>\n<div><label for=\"firstname\">First name: <\/label><br \/>\n<input  tabindex=\"2\" id=\"firstname\" class=\"form-control qiff_field\" maxlength=\"100\" name=\"firstname\" type=\"text\" \/><\/div>\n<div class=\"h10\"><\/div>\n<div><label for=\"lastname\">Last Name:<\/label><br \/>\n<input tabindex=\"3\" id=\"lastname\" class=\"form-control qiff_field\" maxlength=\"100\" name=\"lastname\" type=\"text\" \/><\/div>\n<div class=\"h10\"><\/div>\n<div><label for=\"name\">Which newsletters would you like to receive ?<\/label><\/div>\n<div id=\"chk1\" class=\"chkbtn\" tabindex=\"4\">&nbsp;<\/div>\n<div class=\"chkbtnlabel\">Exclusive offers and promotions<\/div>\n<div style=\"clear: both; height: 5px;\"><\/div>\n<div id=\"chk2\" class=\"chkbtn\" tabindex=\"5\">&nbsp;<\/div>\n<div class=\"chkbtnlabel\">Sports Newsletter<\/div>\n<div style=\"clear: both; height: 5px;\"><\/div>\n<div id=\"chk3\" class=\"chkbtn\" tabindex=\"6\">&nbsp;<\/div>\n<div class=\"chkbtnlabel\">Entertainment Newsletter<\/div>\n<div style=\"height: 20px; clear: both;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-xs-12 col-sm-12 col-md-6 col-lg-6\">\n<div class=\"g-recaptcha\" data-sitekey=\"6LdJ9dAZAAAAAEWSy2q0eKMrr8JfNlJd5o-WDB7U\"><\/div>\n<div style=\"height: 20px; clear: both;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\n\t<button tabindex=\"7\" class=\"submitbtn btn btn-lg qiff_btn\" type=\"button\">SUBMIT<\/button><\/div>\n<\/div>\n<p><input id=\"lang\" name=\"lang\" type=\"hidden\" value=\"en\" \/><input id=\"news1\" name=\"news1\" type=\"hidden\" \/><input id=\"news2\" name=\"news2\" type=\"hidden\" \/><input id=\"news3\" name=\"news3\" type=\"hidden\" \/><br \/>\n<\/form>\n<\/div>\n<div class=\"h10\"><\/div>\n<div id=\"info\" class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12 info\"><\/div>\n<pre><script>\n$(\".chkbtn\").click(function(){\n    \n\tif($(this).html()=='&nbsp;')\n\t$(this).html(\"<span style='padding-left:8px;font-weight:bold'>&#x2714;<\/span>\");\n\telse\n\t$(this).html(\"&nbsp;\");\n  \n\t$(\"#news1\").val('');\n\t$(\"#news2\").val('');\n\t$(\"#news3\").val('');\n\t\n\t\n\tif($(\"#chk1\").html()!='&nbsp;')\n\t\t$(\"#news1\").val(1);\n\telse\n\t\t$(\"#news1\").val('');\n\n\tif($(\"#chk2\").html()!='&nbsp;')\n\t\t$(\"#news2\").val(1);\n\telse\n\t\t$(\"#news2\").val('');\n\n\tif($(\"#chk3\").html()!='&nbsp;')\n\t\t$(\"#news3\").val(1);\n\telse\n\t\t$(\"#news3\").val('');\n});\n\nvar attempt_resubscribe=0;\n$(\".submitbtn\").click(function(){ postdata();});\n\nfunction postdata()\n{\n    var form = $(\"#newsletter-form\");\n    var url = form.attr('action');\n\t\n\tvar errmsg=\"\";\t\n\tvar err=0;\n\t\n\tif($(\"#name\").val()==''){\n\t\terrmsg=\"<li class=err>All fields are required.<\/li>\";\n\t\terr=1;\t\n\t}\n\tif($(\"#firstname\").val()=='')\t{\n\t\terr=1;\n\t\terrmsg=\"<li class=err>All fields are required.<\/li>\";\t\n\t}\n\tif($(\"#lastname\").val()=='')\t{\n\t\terr=1;\n\t\terrmsg=\"<li class=err>All fields are required.<\/li>\";\t\n\t}\n\tif($(\"#email\").val()==''){\n\t\terr=1;\n\t\terrmsg=\"<li class=err>All fields are required.<\/li>\";\n\t}\n\tif($(\"#news1\").val()=='' &&\t$(\"#news2\").val()=='' && $(\"#news3\").val()=='')\n\t{\n\t\terr=1;\n\t\terrmsg=\"<li class=err>All fields are required.<\/li>\";\n\t}\n\tif(validateEmail($(\"#email\").val())==false && $(\"#email\").val()!='')\n\t{\n\t\terr=1;\n\t\terrmsg+=\"<li class=err>Please enter a valid email address<\/li>\";\n\t}\n\n\t\n\tif(err==1) \t\t{\n\t\t$(\"#info\").addClass(\"alert alert-danger\");\n\t\t$(\"#info\").html(errmsg);\n\t\treturn;\t\n\t}\n\telse\t\n\t{\n        \n\t\t$(\"#info\").html(\"\");\n\t\t$(\"#info\").removeClass(\"alert alert-danger\");\n\t\t$(\"#info\").removeClass(\"alert alert-success\");\n\n        \n        if(attempt_resubscribe==1)\n        {\n\n            $.ajax({\n            type: \"POST\",\n            crossDomain: true,\n            url: \"https:\/\/apps.beinsports.com\/bein-api\/infobip.php?process=resubscribe\",\n            cache:false,\n            data: form.serialize(), \/\/ serializes the form's elements.\n            success: function(data)\n            {\n                    \/\/data=data.toString();\n                    console.log(data);\n                    $(\".info\").show(); \n                    response=JSON.parse(data);\n\n                    $(\"#info\").addClass(\"alert alert-success\");\n                    $(\".info\").html('<p class=done><b>Thank you for re-subscribing to our mailing list.<\/b><\/p><\/p>');\n                    $(\"#newsletter-form\")[0].reset();\n                    $(\"#news1\").val('');\n                    $(\"#news2\").val('');\n                    $(\"#news3\").val('');\n                    $(\"#chk1\").html('&nbsp;');\n                    $(\"#chk2\").html('&nbsp;');\n                    $(\"#chk3\").html('&nbsp;');\n                    attempt_resubscribe=0;\n                    return false;\n            }\n            });\n            return false;\n        }\n\t\t\n\t\t$.ajax({\n           type: \"POST\",\n\t\t   crossDomain: true,\n           url: \"https:\/\/apps.beinsports.com\/bein-api\/infobip.php?process=subscribe\",\n\t\t   cache:false,\n           data: form.serialize(), \/\/ serializes the form's elements.\n           success: function(data)\n           {\n\t\t\t\t\/\/data=data.toString();\n                console.log(data);\n\t\t\t\t$(\".info\").show(); \n\t\t\t\tresponse=JSON.parse(data);\n               \n\t\t\t\t\n\t\t\t\tif(response.code==200)\n\t\t\t\t{\n\t\t\t\t\t$(\"#info\").addClass(\"alert alert-success\");\n\t\t\t\t\t$(\".info\").html('<p class=done><b>Thank you for subscribing! <\/b><\/p><p class=done>Look out for our next email, and please add us to your Safe Senders list.<\/p>');\n\t\t\t\t\t$(\"#newsletter-form\")[0].reset();\n\t\t\t\t\t$(\"#news1\").val('');\n\t\t\t\t\t$(\"#news2\").val('');\n\t\t\t\t\t$(\"#news3\").val('');\n\t\t\t\t\t$(\"#chk1\").html('&nbsp;')\n\t\t\t\t\t$(\"#chk2\").html('&nbsp;')\n\t\t\t\t\t$(\"#chk3\").html('&nbsp;')\n\t\t\t\t}\n\t\t\t\tif(response.code==400)\n\t\t\t\t{\n\t\t\t\t\t$(\"#info\").addClass(\"alert alert-danger\");\n\t\t\t\t\t$(\".info\").html('<p class=err><b>This email is already subscribed to our newsletter.<\/b><\/p>');\n\t\t\t\t}\n\t\t\t\tif(response.code==401)\n\t\t\t\t{\n\t\t\t\t\t$(\"#info\").addClass(\"alert alert-danger\");\n\t\t\t\t\t$(\".info\").html('<p class=err><b>reCAPTCHA verification failed. Please try again.<\/b><\/p>');\n\t\t\t\t}\n                if(response.code==403)\n\t\t\t\t{\n\t\t\t\t\t$(\"#info\").addClass(\"alert alert-danger\");\n\t\t\t\t\t$(\".info\").html('<p class=err><b>You\u2019ve previously unsubscribed. Click \"Submit\" again if you\u2019d like to re-subscribe.<\/b><\/p>');\n                    attempt_resubscribe=1;\n\t\t\t\t}\n\t\t\t\t\n           }\n         });\n\t}\n}\n\nfunction validateEmail(email) {\n  var re = \/^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$\/;\n  return re.test(email);\n}\n\n$(document).ready(function(){\n\t$(\"#email\").focus();\n});\n<\/script>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Join our subscribers list to receive the latest news, updates and exclusive offers every week. Email address: First name: Last Name: Which newsletters would you like to receive ? &nbsp; Exclusive offers and promotions &nbsp; Sports Newsletter &nbsp; Entertainment Newsletter SUBMIT<\/p>\n","protected":false},"author":25,"featured_media":0,"parent":0,"menu_order":44,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"episode_type":"","audio_file":"","cover_image":"","cover_image_id":"","duration":"","filesize":"","filesize_raw":"","date_recorded":"","explicit":"","block":"","itunes_episode_number":"","itunes_title":"","itunes_season_number":"","itunes_episode_type":"","footnotes":""},"class_list":["post-14631","page","type-page","status-publish","hentry"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bein.com\/en\/wp-json\/wp\/v2\/pages\/14631","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bein.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bein.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bein.com\/en\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bein.com\/en\/wp-json\/wp\/v2\/comments?post=14631"}],"version-history":[{"count":114,"href":"https:\/\/www.bein.com\/en\/wp-json\/wp\/v2\/pages\/14631\/revisions"}],"predecessor-version":[{"id":189601,"href":"https:\/\/www.bein.com\/en\/wp-json\/wp\/v2\/pages\/14631\/revisions\/189601"}],"wp:attachment":[{"href":"https:\/\/www.bein.com\/en\/wp-json\/wp\/v2\/media?parent=14631"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}