PDA

View Full Version : submit button help



nick120
06-15-2005, 10:51 PM
thank you very much in advance

alright um just one more thing if u dont mind lol this is my calc total function
just wondering if their is anything wrong with this it declares a total field a variable -- x and makes that field 500 then its supposed to take the info out of other radio buttons and if they are checked it should add that price to the total field adds up by clicking on a calculate total button. do i need anythin else besides this function? for the calculate total to work?

function calctotal() {
var x=500;
if (document.nick.radio1[1].checked==true)
x=x+125;
if (document.nick.radio2[1].checked==true)
x=x+100;
if (document.nick.radio3[1].checked==true)
x=x+50;
document.NICK.TOTALFIELD.value=500;
}

do i need something like this after the body

<FORM NAME=NICK onSubmit="Check_Data();">

do u know the code for a refresh button because i push my refresh button on my page but it dosent work lol thank you very much in advance

nick120
06-15-2005, 10:55 PM
id this the right way of saying this mainly the greater then 0 part

if(document.NICK.totalfield>0)