Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to figure out how to create an HTML form that would allow a user to log in and tweet their message directly to Twitter. What resources should I look at to get started?

share|improve this question
up vote 2 down vote accepted
<form target="_blank" name="tweet" action="https://twitter.com/share" method="get"> 
  <input type="hidden" name="original_referer" value="http://www.yoururl.com"> 
  <input type="hidden" name="source" value="tweetbutton"> 
  <input type="hidden" name="url" value="http://www.yoururl.com"> 
  <input style="width:430px; height:34px; font-size:18px" type="text" name="text" maxlength="98">

  <input type="submit" value="Tweet This" />    
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.