Thread: Form questions
View Single Post
Old 10-28-2005, 07:39 PM   #1 (permalink)
JDE
Registered User
 
Join Date: Oct 2005
Posts: 1
JDE is on a distinguished road
Question Form questions

Hello,

I've built a subscription page and included a signup form. Two things are driving me nuts! And trust me it a short trip!

Problem #1:
The form asks for 3 input fields; first name, last name and email address.
Regardless of whether I define a background-color: for the input field class in the CSS or not, the 3rd field always has a yellow background color when viewed by a browser (although not in my html editor)!

If I leave the background-color: definition out, the 1st two fields have a white background and the third yellow!

If I define the background-color: the 1st two fields have my defined color and the 3rd is yellow!

code CCS below:
.input-box{
float: left;
margin-bottom: 5px;
color: #222d5d;
background-color: #eee;
border: #222d5d solid 1px;
}

Javascript Input statements below:
<label for="firstname">First</label><input class="input-box" type="text" name="firstname" value="" maxLength=30 size=16><br>
<label for="lastname">Last</label><input class="input-box" type="text" name="lastname" value="" maxLength=30 size=16><br>
<label for="email">eMail</label><input class="input-box" type="text" name="email" value="" maxLength=30 size=16><br>

Problem #2:
After completing a test form, then receiving the "Thank You", when I return to the subscription page, my previous input is still in the fields!
How can I clear the input field after they are sent to the host so the form is clear when the visitor returns to the page? I don't want to use a reset button.

I'd appreciate any help. Thanks ...JDE
JDE is offline   Reply With Quote