Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-28-2005, 08: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
Old 10-28-2005, 09:50 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,530
sde is on a distinguished road
sounds like you are doing some server-side stuff .. what are you using to process the data?

i haven't ever really used label tags .. and the word 'for' just doesn't seem like something i've seen in html ever.
sde is offline   Reply With Quote
Old 10-29-2005, 02:52 AM   #3 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Use an onClick on the submit button to clear the fields
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Child Form to Parent Form WmFenn MS Technologies ( ASP, VB, C#, .NET ) 2 07-20-2005 09:10 AM
Passing Values from Popup Form to Main Form chrislopezz PHP 7 03-28-2005 01:45 PM
EMERGENCY: Dynamic form processing DavH27 PHP 8 10-27-2004 08:52 PM
Passing form data to PHP with Javascript bdl PHP 5 07-03-2002 11:18 AM


All times are GMT -8. The time now is 02:58 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting