Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: Radio buttons


Message #1 by "tan chye ting" <chyeting18@h...> on Fri, 21 Dec 2001 14:34:29
I'm trying to develop a registration module for my project where user have 

to register with user details, password etc...And I have to update into my 

Access database.  The problem is, I'm using radio buttons in my 

registration forms, there is no problem to update into the database.But 

I'm also storing data from my registration form into a session to enable 

editing of information. When I use text box there seems to be no problem 

at all.But when it comes to radion buttons, I can't retrieve the relevent 

data.That actually means when I access the registration form again, all 

the other text boxes have the user details,except for all the radio 

buttons. please help..
Message #2 by ashay@w... on Mon, 24 Dec 2001 11:06:26 +0530

--

When replying to the digest, please quote only

relevant material, and edit the subject line to

reflect the message you are replying to.

---





hi,



for radio buttons u have to use some different approach.....



Suppose u have a radiobutton for the sex attribute on a form.U r storing that value in a session variable Session("radio") as:

<%

sex=Session("radio")

if sex="m" then

m_sex="checked"

else 

f_sex="checked"

end if 

%>

now in the html form u have to use





<input type="radio" name="sex" value="m" <%=sex%> >Male 



<input type="radio" name="sex" value="f" <%=sex%> Female 



so if the user has selected "male" then first option will be selected else the second will be selected





regards



ashay







Subject: Radio buttons

From: "tan chye ting" <chyeting18@h...>

Date: Fri, 21 Dec 2001 14:34:29

X-Message-Number: 2



I'm trying to develop a registration module for my project where user have 

to register with user details, password etc...And I have to update into my 

Access database.  The problem is, I'm using radio buttons in my 

registration forms, there is no problem to update into the database.But 

I'm also storing data from my registration form into a session to enable 

editing of information. When I use text box there seems to be no problem 

at all.But when it comes to radion buttons, I can't retrieve the relevent 

data.That actually means when I access the registration form again, all 

the other text boxes have the user details,except for all the radio 

buttons. please help..





---



END OF DIGEST










Message #3 by ashay@w... on Mon, 24 Dec 2001 05:45:17
hi,

> sorryyy...........some small mistake.......but this wiill work

> for radio buttons u have to use some different approach.....

> 

 Suppose u have a radiobutton for the sex attribute on a form.U r storing 

that value in a session variable Session("radio") as:

 <%

 sex=Session("radio")

 if sex="m" then

 m_sex="checked"

 else 

 f_sex="checked"

 end if 

 %>

 now in the html form u have to use

 

 

 <input type="radio" name="sex" value="m" <%=m_sex%> >Male 

 

 <input type="radio" name="sex" value="f" <%=f_sex%> Female 

 

 so if the user has selected "male" then first option will be selected 

else the second will be selected

 

 

 regards

 

 ashay







> 

> --

> When replying to the digest, please quote only

> relevant material, and edit the subject line to

> reflect the message you are replying to.

> ---

> 

> 

> hi,

> 

> for radio buttons u have to use some different approach.....

> 

> Suppose u have a radiobutton for the sex attribute on a form.U r storing 

that value in a session variable Session("radio") as:

> <%

> sex=Session("radio")

> if sex="m" then

> m_sex="checked"

> else 

> f_sex="checked"

> end if 

> %>

> now in the html form u have to use

> 

> 

> <input type="radio" name="sex" value="m" <%=sex%> >Male 

> 

> <input type="radio" name="sex" value="f" <%=sex%> Female 

> 

> so if the user has selected "male" then first option will be selected 

else the second will be selected

> 

> 

> regards

> 

> ashay

> 

> 

> 

> Subject: Radio buttons

> From: "tan chye ting" <chyeting18@h...>

> Date: Fri, 21 Dec 2001 14:34:29

> X-Message-Number: 2

> 

> I'm trying to develop a registration module for my project where user 

have 

> to register with user details, password etc...And I have to update into 

my 

> Access database.  The problem is, I'm using radio buttons in my 

> registration forms, there is no problem to update into the database.But 

> I'm also storing data from my registration form into a session to enable 

> editing of information. When I use text box there seems to be no problem 

> at all.But when it comes to radion buttons, I can't retrieve the 

relevent 

> data.That actually means when I access the registration form again, all 

> the other text boxes have the user details,except for all the radio 

> buttons. please help..

> 

> 

> ---

> 

> END OF DIGEST

> 




> 

> 


  Return to Index