HighDots Forums  

Dynamic data and radiobuttons!

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Dynamic data and radiobuttons! in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
nilu72
 
Posts: n/a

Default Dynamic data and radiobuttons! - 11-07-2004 , 10:13 AM






Hi! Here is my problem. I am creating an update page and on this page I have
several radiobuttons. I have tried inserting values from my database in the
radio buttons for example an Id with the value of "1", "2" and so on. The
radiobutton is suppose to check the button with the value taken form the
database. If I choose another selection and hit the update button, then I want
to update the record with another value offcourse. Below you can see my code,
but it is not working proberly. It works so far that the right value is checked
but I get an error when I hit the update button. Hope some one can help. Thanks!



<%
While ((Repeat1__numRows <> 0) AND (NOT race.EOF))
%>
<%=(race.Fields.Item("Racetype").Value)%>
<input name="fmrace" type="radio" class="inputcheck" value="radiobutton"<%If
(CStr((horsesaleupdate.Fields.Item("Salgsheste.Rac eID").Value)) =
CStr(Race.Fields.Item("RaceID").Value)) Then Response.Write("CHECKED") : %>>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
race.MoveNext()
Wend
%>


Reply With Quote
  #2  
Old   
nilu72
 
Posts: n/a

Default Re: Dynamic data and radiobuttons! - 11-07-2004 , 10:25 AM






Oh boy. My mistake. I just saw that the value in the radiobutton is set to "radiobutton". It is offcourse to be the recordset named "race.Fields.Item("RaceID") Now it works fine.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.