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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio button resets my defaults

Status
Not open for further replies.

fatcodeguy

Programmer
Feb 25, 2002
281
CA
Hi,

I have a form which starts with a set of radio buttons (2). After that, I have a few text field inputs, some drop downs, and some check boxes. If I compelete the form, and then change the radio button, all the check boxes un-check themselves... Any ideas ?

Thanks
 
Sorry for the delay

<TABLE width=&quot;760&quot; cellpadding=5 cellspacing=0 border=0 COLS=3><FONT size=2 style=&quot;Times New Roman&quot;>

<TR><TD>Search Type</TD><TD>
<INPUT TYPE=&quot;radio&quot; VALUE=&quot;RAD1&quot; NAME=&quot;p_arg_values&quot; CHECKED>rad1
<INPUT TYPE=&quot;radio&quot; VALUE=&quot;SPECIFIC&quot; NAME=&quot;p_arg_values&quot; >Specific
</TD></TR>
<TR><TD>Search</TD><TD>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;p_arg_names&quot; VALUE=&quot;_search_str&quot;>
<INPUT TYPE=&quot;text&quot; NAME=&quot;p_arg_values&quot; SIZE=&quot;30&quot; MAXLENGTH=&quot;2000&quot;>
</TD></TR>
<TR><TD>
Criteria 1
</TD><TD>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;p_arg_names&quot; VALUE=&quot;crit_1&quot;>
<SELECT NAME=p_arg_values SIZE=&quot;1&quot; >
<OPTION VALUE=&quot;1&quot;>Option 1
<OPTION VALUE=&quot;2&quot;>Option 2
<OPTION VALUE=&quot;3&quot;>Option 3
</SELECT></TD></TR>

<TR><TD>Criteria 2
</TD><TD>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;p_arg_names&quot; VALUE=&quot;crit_2&quot;>
<SELECT NAME=p_arg_values SIZE=&quot;1&quot; >
<OPTION VALUE=&quot;1&quot;>Option 1
<OPTION VALUE=&quot;2&quot;>Option 2
<OPTION VALUE=&quot;3&quot;>Option 3
</SELECT></TD></TR>
<TR><TD valign=&quot;top&quot;>Output</TD><TD>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;p_arg_names&quot; VALUE=&quot;_out_app_sys&quot;>
<INPUT TYPE=&quot;checkbox&quot; NAME=&quot;col_1&quot; CHECKED>Column 1<BR>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;p_arg_names&quot; VALUE=&quot;_out_app_sys&quot;>
<INPUT TYPE=&quot;checkbox&quot; NAME=&quot;col_2&quot; CHECKED>Column 2<BR>
<INPUT TYPE=&quot;hidden&quot; NAME=&quot;p_arg_names&quot; VALUE=&quot;_out_app_sys&quot;>
<INPUT TYPE=&quot;checkbox&quot; NAME=&quot;col_3&quot; CHECKED>Column 3<BR>
</TD></TR>
</TABLE>
 
NAME=&quot;p_arg_values&quot; ??

NAME=&quot;p_arg_names&quot; ??

change the names of your elements the radio set should have one name(that's the two radios the same name) and any other element should have a different name.


grtfercho çB^]\..
&quot;Imagination is more important than Knowledge&quot; A. Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top