473,499 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FieldSet Problem

kestrel
1,071 Recognized Expert Top Contributor
i cant get my fieldset to work properly
i have a form with two fieldsets, separating the required forms and optional
but the one around the optional isnt working
heres what i have:

[HTML]

<fieldset style="border: 2px solid red;"><legend><font style="background-color: red; color: black; font-weight: bold; font-size: 13px; font-family: Lucida Console;">&nbsp;Contact Us&nbsp;</font></legend>
<font class="regular">
Name:<br />
<input type="text" name="name" id="name" size="40" value="" maxlength="25" autocomplete="off" style="border: 1px solid red; color: red; background: black; text-align: center;" /><br /><br />

Email Address:<br />
<input type="text" name="email" id="email" size="40" value="" style="border: 1px solid red; color: red; background: black; text-align: center;" /><br /><br />

Subject:<br />
<input type="text" name="field-16adf3ed0a741a3" id="field-16adf3ed0a741a3" size="40" value="" style="border: 1px solid red; color: red; background: black; text-align: center;" /><br /><br />

Question/Comment<br />
<textarea name="field-2fb9f8e54c8527c" id="field-2fb9f8e54c8527c" rows="6" cols="40" style="border: 1px solid red; color: red; background: black; text-align: left;" ></textarea>
</fieldset>
<br />
<fieldset style="border: 2px solid red;"><legend><font style="background-color: red; color: black; font-weight: bold; font-size: 13px; font-family: Lucida Console;">&nbsp;Contact Us&nbsp;</font></legend><br />
Rate This Site<br />
<select name="field-77ff30f1176485f" id="field-77ff30f1176485f" style="border: 1px solid red; color: red; background: black; text-align: left;" >
<option value="Pick One (5 is best)">Pick One (5 is best)</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select><br /><br />

Where did you hear about this site?<br />
<input type="text" name="field-06d7f6da57f10df" id="field-06d7f6da57f10df" size="40" value="" style="border: 1px solid red; color: red; background: black; text-align: center;" /><br /><br />

Is there any way that this site can improve?<br />
<textarea name="field-3ea5a26a81757d9" id="field-3ea5a26a81757d9" rows="6" cols="40" style="border: 1px solid red; color: red; background: black; text-align: left;" ></textarea></fieldset>
</fieldset> <br />
<input type="submit" value=" Send " style="border: 1px solid red; color: red; background: black; text-align: center;" />
<input type="reset" value=" Reset " style="border: 1px solid red; color: red; background: black; text-align: center;" />



</font>
[/HTML]
Sep 23 '06 #1
6 8356
ronverdonk
4,258 Recognized Expert Specialist
What do you mean by "the optional fieldset isn't working"?
The code displays both fieldsets correctly, as far as I can see it.
The buttons don't work because you need these within a <form> set.

Ronald :cool:
Sep 23 '06 #2
kestrel
1,071 Recognized Expert Top Contributor
but when ever i try the field set, the optional form doesnt show correctly
Sep 24 '06 #3
ronverdonk
4,258 Recognized Expert Specialist
Well it works in my browser (IE 6). I only took the duplicate </fieldset> statement at the end out.

It displays 2 fieldsets with white background and red borders. The text entry fields are red text on black background. The 2 buttons are blck with red text. Can you be more specific mon the error you encounter?

Ronald :cool:
Sep 24 '06 #4
kestrel
1,071 Recognized Expert Top Contributor
well, im using firefox, and it gets all messed up

thanks
Sep 24 '06 #5
ronverdonk
4,258 Recognized Expert Specialist
It cannot be the duplicate </fieldset> tag at the end, can it?
If you cannot find the cause, maybe you could try to get rid of all things like "style=" and other make up and see if it gets displayed in Firefox then.

Ronald :cool:
Sep 24 '06 #6
kestrel
1,071 Recognized Expert Top Contributor


heres my problem
i dont know why it does that,
but when i separate the 2 <fieldset></fieldset>
its perfect.
Sep 25 '06 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
9406
by: rd | last post by:
Has anyone else noticed a problem when printing html with fieldsets in them? Whenever I print even the simplest document with a fieldset, the amount of data sent to the printer jumps from a few K...
3
20211
by: Trent | last post by:
Hello, I have a <fieldset> in a <TD>. I want the fieldset to be as high as the TD. Setting the fieldset's height to 100% works in IE. Opera ignores it. Firefox & Netscape 7.1 give it the...
0
2994
by: Anne van Kesteren | last post by:
Ok, here it goes. Originally I submitted this proposal to www-style. Since I don't get feedback there, I think I missed a few (maybe a lot) of points. Proposal:...
2
7408
by: luke | last post by:
I'm trying to use an image as a background for a text input box. <form> <fieldset><input type="text" name ="blah" class="cheese"></fieldset> </form> I'm using this code as part of my css to...
1
7372
by: Nate12o6 | last post by:
Hey guys, i am having trouble with getting the heights corrected on my fieldset. Right now i have 2 table cells side by side. And inside of each there is a field set. The fieldset to the right...
9
4556
by: Geoff Cox | last post by:
hello when I use <fieldset><legend></legend> <input type="hidden" name="subject" value="Course"> <input type="hidden" name="recipient" value="allemails"> <input type="hidden" name="email"...
3
2981
by: jmartmem | last post by:
Greetings, I have an ASP page containing a Record Insertion Form with a number of fields linked to an Access database. Within this form, I have a fieldset with six checkboxes, one of which is a...
3
3183
by: shapper | last post by:
Hello, I am creating a form. It has a few labels, inputs and a submit button. Should I place the button inside the same fieldset as the inputs and labels? Or in a different fieldset? Or maybe...
1
16380
by: BlueG | last post by:
I wrote simple code for expandable/collapsable fieldsets. You can try it yourselves: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
7128
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7006
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5467
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.