Here is an HTML/CSS example of how to create an inline form:

LOGIN: <form action="#" method="get" id="login" style="display:inline!important;"> <label for='User'>User:</label> <input type='text' name='User' id='User'> <label for='password'>Password:</label><input type='password' name='password' id='password'> <input type="submit" name="log" id="log" value="Login" /></form> [?]

The result is:

LOGIN:

   

[?]

Another application of this is to create a button that is actually a link:

<form style="display: inline!important;" action="/registration/" method="link"><input style="width: 250px;" type="submit" value="Register Now!" /></form>

The result is: