English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

r u :


hasan


adnan



both radios are always pre selected.
and pls also tel me that what is function of the command "name" in the command and also tell the function of command "value"...i shall be thank full to you

2007-04-29 06:27:59 · 6 answers · asked by hasantiger007 1 in Computers & Internet Programming & Design

6 answers

1. you should not have a space in the name element - use "you_are", not "you are"

2. the default value needs the element checked to be added

2007-04-29 06:35:52 · answer #1 · answered by Anonymous · 0 0

use the below provided code. You can use "checked" with one of the radio buttons to pre-select it. when you submit a web form , you submit name-value pairs for any field on the form. That is what a name and value attribute is for.
==========================================


hasan

adnan


===========================================

2007-04-29 06:36:27 · answer #2 · answered by rjha94 2 · 0 0

What you have given us should be inside "form tags" for example:


put form elements such as radio buttons in here


The fuction of the name attributes are to provide a way to reference the returned values.

So, the radio button with the name "you are" will return a value of "hasan" when selected.

I hoep this gives you some insight to what is goig on on your web page.

2007-04-29 06:38:48 · answer #3 · answered by afreshpath_admin 6 · 0 0

value="..." is the value returned to the routine that is activated when the form viewer clicks "submit"

name="..." identifies the input item for use by whatever "action=" routine is taken when the form is submitted.

Your action routine looks for the input field named "you are" (which in fact is the entire radio button, including all its possibilities) and fetches the "value" (which is the one selected, say, "adnan"), and acts accordingly (as you have told it beforehand...

You may determine which one is preselected when the form is first displayed, by placing, in that item, the term:
checked="checked"

2007-04-29 06:50:12 · answer #4 · answered by fjpoblam 7 · 0 0

r u :

hasan

adnan

2007-04-29 06:38:48 · answer #5 · answered by Anonymous · 0 0