Help - Search - Members - Calendar
Full Version: username and password login fields
MSFN Forums > Coding, Scripting and Servers > Web Development (HTML, Java, PHP, ASP, XML, etc.)

   
Google Internet Forums Unattended CD/DVD Guide
computerMan
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! tongue.gif

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

thanks guys!
ripken204
anything is possible!
computerMan
QUOTE (ripken204 @ Nov 25 2007, 03:30 PM) *
anything is possible!


Well, I guess its not possible for me to be SMART!!! >:3 XD
computerMan
So is there anyone out there that knows how to do this?
Chozo4
You can put it there the same as you would any FORM elements.

Such as:
CODE
<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.
Idontwantspam
What code are you using right now? Just make sure there's no <br> or <br /> tag between the two form fields.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.