I think there are several of problems.
I think you must put the script tags inside the head or body
Note the use of the type attribute not the language attribute.
browsers. This isn’t necessary anymore.
For the following why have two elements with the same name? Also why
have the hidden element at all?
name=“add_visit_for_this_Pt” type=“checkbox” value=“yes” />
BTW, You might be interested in this page for using tags and attributes
to get started.
For your example to work with the Thacker script you cannot use
“add_visit_for_this_Pt” etc because when the script searches for
document.myform.add_visit_for_this_Pt it will not find anything. There
isn’t an element or list of elements with the “name
add_visit_for_this_Pt”. There is an element with name
“add_visit_for_this_Pt”. This is a bit subtle. Study the working
example below and see if you can make sense if it. I think that
“add_vista_for_this_Pt” and “add_vista_for_this_Pt” are not seen
them all as part of an array.
Setting the checked attribute to true or false seems to work.
I guess you will have to play more with this to get it working the way
you want to with Rails.