Calculator form

Results 1 to 3 of 3

Thread: Calculator form

  1. #1
    Join Date
    Dec 1969

    Default Calculator form

    This may be an easy one for coders, but I'm a beginner. I created an HTML calculator form that gives the user three list boxes. The first and third list box are numeric option 1-5 and the middle one is for operators ( +,-,*, and /). How do I code the asp to give the answer. After dimming iNum1, sngOperator, and iNum2 to Request = ("variableNames"), I now need to create the actual answer.

  2. #2
    Join Date
    Dec 1969

    Default RE: Calculator form

    if sngOperator = "+" then<BR> result = iNum1 + iNum2<BR>end if<BR><BR>kind of coding between several languages right now, but I think that is right, and you should be able to do the same for all operators

  3. #3
    Join Date
    Dec 1969

    Default Is this homework? (eop)


Posting Permissions

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