F
Frank H. Shaw
Thank you for clear up the fact that HTML is a markup and not code I have
created the Logic for what I need I know that the IF ELSE ENDIF will work
because of my years of programing behind me but what I am trying to do is get
the correct syntax for the conditional exprision which is the following:
(amount[1].checked) I beleaive I could also do the
followingamount[1].value = 20.95) that should work also but would I have to
put "20.95" or '20.95' and what would I have if any before the amount[1]
which I assume means the first radiobutton - Please explain to me proper Opps
syntaxs and how I figure it out in the herararcy I place the exact HTMLmarkup
for the radiobuttons at the bottom of this message. Once I get a understand
of how it is done for the radiobutton I can figure it out for any object
because it is all done the same. Please use my example so I can follow it
also is what I need to do on my actual web page and I need to do it the way I
constucted the question in my first thread. which I posted below again THANKS
HTML markup and javascript I will have to put print statements on both side
of the the ELSE statement.
created the Logic for what I need I know that the IF ELSE ENDIF will work
because of my years of programing behind me but what I am trying to do is get
the correct syntax for the conditional exprision which is the following:
(amount[1].checked) I beleaive I could also do the
followingamount[1].value = 20.95) that should work also but would I have to
put "20.95" or '20.95' and what would I have if any before the amount[1]
which I assume means the first radiobutton - Please explain to me proper Opps
syntaxs and how I figure it out in the herararcy I place the exact HTMLmarkup
for the radiobuttons at the bottom of this message. Once I get a understand
of how it is done for the radiobutton I can figure it out for any object
because it is all done the same. Please use my example so I can follow it
also is what I need to do on my actual web page and I need to do it the way I
constucted the question in my first thread. which I posted below again THANKS
Note: I know the hidden fields do not print and I realize that to test thePlease look at the condional expersion (amount[1].checked) is
it correct written and acrurate does it do the following:
Will the conditional expersion in the if statement do the
following: If the the first radiobutton named amount in the
amount radiobutton group of two radiobuttons at the bottom of
this message is checked then the 2 lines of HTML code before
the else gets excuted if the second radio button is checked
then the 2 lines of HTML code after the ELSE get excuted. The
actual radiobutton HTML code is at the bottom of this message
for you to glance at THANKS
HTML markup and javascript I will have to put print statements on both side
of the the ELSE statement.
<Script>
IF (amount[1].checked)
<input type="hidden" name="item_number" value="212-E"> <input
type="hidden" name="amount" value="20.95">
ELSE
<input type="hidden" name="item_number" value="212-D"> <input
type="hidden" name="amount" value="225.00">
ENDIF
<input TYPE="radio" CHECKED NAME="amount"VALUE="20.95"> said:style="font-size: 10.0pt; font-family: Trebuchet MS">By
each</span></p>
<input TYPE="radio" NAME="amount" VALUE="225.00"></span><span
style="font-size: 10.0pt; font-family: Trebuchet MS">By
Dozen</span></p>