title: post to twitter
body: <p>Im looking for a function to post to twitter users posts they make on my website. For example</p>
  
  <p>Message: "hello world" [twitter]
  Click twitter and it posts message along with page URL. If the mesaage is longer than the twitter max then it shows a abbreviated version.</p>
  
  <p>I at the momment i have an official one that only posts the whole page to twitter and not an individual post/message</p>
  
  <p>This is what ive tried</p>
  
  <pre><code>&lt;a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-text"&lt;?php echo $row['id']; echo $row['message']; ?&gt;"&gt;Tweet&lt;/a&gt;&lt;script type="text/javascript" src="http://platform.twitter.com/widgets.js"&gt;&lt;/script&gt;&lt;br/&gt;
  </code></pre>
  
  <p>But its still just displaying page name and link to page. Not the post</p>
  
  <p>Can anyone help how to do this and where to get it? </p>