Jump to content

Recommended Posts

Posted

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.png

that 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! :P

But anyway, can i do the username and password log in fields on the top of my website?

thanks guys!


Posted (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-css

To get it near the top, simply put it early in the HTML of your page where it's desired to come before.

Edited by Chozo4

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...