Twitter is using a simple text input. The rounded borders are from the CSS3 border-radius
property.
<input value="" placeholder="Search" name="q" id="search-query" type="text">
The magnifying glass is the background image of an element, and they are absolutely positioning it with a right: 0;
Regards, Arkinder