Results 1 to 2 of 2

Thread: submit button help

  1. #1
    Join Date
    Jun 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool submit button help

    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

  2. #2
    Join Date
    Jun 2005
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    id this the right way of saying this mainly the greater then 0 part

    if(document.NICK.totalfield>0)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •