Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS Form

Status
Not open for further replies.

metaphiz

Programmer
Jun 30, 2004
91
US
I'm new to CSS forms, and I'm having trouble getting my form to submit properly. When I submit the form it doesn't go to the action URL. Below is my CSS code and form code. Thanks!

CSS CODE
input
{
color: #666666;
border: 1px solid #666666
}

fieldset
{
border: 1px solid #666666;
width: 25em;
height: 19em;
margin-left:auto;
margin-right:auto
}

legend
{
color: #fff;
background: #ffb340;
border: 1px solid #666666;
padding: 2px 6px;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight:bold;
}

label
{
width: 6em;
float: left;
text-align: right;
margin-right: 1em;
display: block;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight:bold;
color: #666666;
}

.submit input
{
margin-left: 13.4em;
background: #ffb340;
border: 1px solid #666666;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-weight:bold;
color:#FFFFFF
}

FORM CODE
<form action="contact_thanks.cfm" method="post">
<fieldset>
<legend>Contact The DM Shop</legend>
<p><label for="name">Name</label> <input type="text" id="name" /></p>
<p><label for="e-mail">E-mail</label> <input type="text" id="e-mail" /></p>
<p><label for="phone">Phone</label> <input type="text" id="phone" /></p>
<p><label for="company">Company</label> <input type="text" id="company" /></p>
<p class="submit"><input type="submit" value="Submit" /></p>
</fieldset>
</form>
 
The css should have nothing to do with it.
Does contact_thanks.cfm exist on your server?

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
OK, thanks, you were right. The problem was another html form tag that wasn't properly formed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top