title: Post predefined data to twitter
body: <p>I am trying to get the text from value="" in my form into the php variable $_POST['twitter'] but I keep getting a blank and if I remove isset, I get an undefined error.</p>
  
  <pre><code>&lt;?php
  //$twitter=(isset($_POST['twitter']));
  var_dump($_POST);
  ?&gt;
  
  &lt;form method="post" action=""&gt;
          &lt;input type="checkbox" name="twitter" value="My Posting Text"&gt;Would you like to send to Twitter?&lt;br&gt;
  &lt;/form&gt;
  
  &lt;div id="custom-tweet-button"&gt;
      &lt;a href="https://twitter.com/share?" id="my_twitter_id" data-show-screen-name="false" data-url="https://nyctelecomm.com" data-text="&lt;?php echo $_POST['twitter']; ?&gt;" data-counturl="null" class="twitter-share-button" target="_blank" data-count="horizontal" data-lang="en" data-via="NYCTelecomm.com"&gt;Tweet&lt;/a&gt;
  &lt;/div&gt;
      &lt;script language="javascript" type='text/javascript'&gt;
                  !function (d, s, id)
                  {
                      var js, fjs = d.getElementsByTagName(s)[0];
                      if (!d.getElementById(id))
                      {
                          js = d.createElement(s);
                          js.id = id;
                          js.src = "//platform.twitter.com/widgets.js";
                          fjs.parentNode.insertBefore(js, fjs);
                      }
                  }
                  (document, "script", "twitter-wjs");
       &lt;/script&gt;
  </code></pre>