| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Mar 2006 Location: USA
Posts: 497
![]() ![]() | Form Style I hope this is in the right form. I have this code: Code: <form action="login2.php" method="post"> <font face="Verdana" size="2">Username</font>:<input type="text" name="username" size="15" style="font-family: Verdana; color: #FFFFFF; font-size: 10pt; border: 1px solid #FFFFFF; background-color: #141F19" /><font face="Verdana" size="2"> Password:</font><input type="password" name="password" size="15" style="color: #FFFFFF; font-family: Verdana; font-size: 10pt; border: 1px solid #FFFFFF; background-color: #141F19" /> <input type="submit" value="Login" style="color: #FFFFFF; font-family: Verdana; font-size: 10pt; border: 1px solid #FFFFFF; background-color: #141F19" /> </form> |
| |
| | #4 (permalink) |
| Senior Member Join Date: Sep 2005 Location: England
Posts: 1,034
![]() ![]() ![]() ![]() | snike, you're using way too much code there, allow me to declutter it for you: Code: <style type="text/css">
.class1 {color: #FFFFFF; font-family: Verdana; font-size: 10pt; border: 1px solid #FFFFFF; background-color: #141F19}
</style>
<form action="login2.php" method="post">
<font face="Verdana" size="2">
Username:
<input type="text" name="username" size="15" class="class1" />
Password:
<input type="password" name="password" size="15" class="class1" />
<input type="submit" value="Login" class="class1" />
</form> |
| |
| | THREAD STARTER #5 (permalink) |
| NamePros Regular Join Date: Mar 2006 Location: USA
Posts: 497
![]() ![]() | ok thanks shorty! that helped! Any one know how to make the height of a text box smaller? take a look at www.emeraldfeathers.com you can see the log in form where it says EF Connect. The backround of the cell table continues because of something. it shouldn't continue like that... i think it is like that because of the text boxes...can someone help..plz.. |
| |
| | #7 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,963
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | For some form fields like <input type="text"> I advise you to use the maxlength tag too so you can limit the size of user input. For example if the matching db field allows 50 characters it would be a good idea to have maxlength="50" in the matching text box. And of course, always check user input before saving to the DB so as to avoid SQL injection attacks.
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |