Nerwin Posted November 25, 2007 Posted November 25, 2007 hello everyone,I been working on my website and I am doing a beta email thing and i wanted to have a username and password fields, but i want them side by side, here i will give you a screenshot where i want them.http://i11.tinypic.com/6l0k4tw.pngthat is what i bassicly want it to look like.PS, I finally got my host, 60 bucks a year with a terabyte of space and 10 terabytes of bandwitdh, i know its CRAZY! But anyway, can i do the username and password log in fields on the top of my website? thanks guys!
Nerwin Posted November 25, 2007 Author Posted November 25, 2007 anything is possible!Well, I guess its not possible for me to be SMART!!! >:3 XD
Nerwin Posted November 25, 2007 Author Posted November 25, 2007 So is there anyone out there that knows how to do this?
Chozo4 Posted November 26, 2007 Posted November 26, 2007 (edited) You can put it there the same as you would any FORM elements.Such as:<form method=post action='insert_login_script_url_here.php'>User: <input name=user> Pass: <input name=pass type=password> <input type=submit value=Login></form>That is just a basic framework for what you're looking for. You'll need to fill in the FORM tags and the rest as you deem needed to submit the data right to your authentication script.You can take this form and insert it into a table or DIV tag to get the desired effect as you wish. As long as the inputs are anywhere between the FORM tags, you can insert tables/divs and the like between the FORM tags to further your positioning/styling. You can further style the fields using images using CSS for further graphical tweaking. Info to do so can be found at the following:http://www.sitepoint.com/article/fancy-form-design-cssTo get it near the top, simply put it early in the HTML of your page where it's desired to come before. Edited November 26, 2007 by Chozo4
Idontwantspam Posted November 26, 2007 Posted November 26, 2007 What code are you using right now? Just make sure there's no <br> or <br /> tag between the two form fields.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now