prograamming a formular which involves squareroot and inputs from the form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xtrim
    New Member
    • Mar 2010
    • 2

    #1

    prograamming a formular which involves squareroot and inputs from the form

    hi,aprogramming this formular but am not very conversant with php can any one please help

    w=sqrt((C/48)*(X/84))*48

    C and X are provided from the form
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hey.

    As far as I can see, you can use that as it is. You would only have to prefix the variables with $ (to make them valid PHP variables) and add a semi-colon (;) to the end of the line.

    Comment

    • xtrim
      New Member
      • Mar 2010
      • 2

      #3
      coding formula using php

      hi,aprogramming this formular but am not very conversant with php can any one please help

      Code:
      w=sqrt((C/48)*(X/84))*48
      C and X are provided by the user from form.
      how can code this formula so tha when the user fills in the values of c and x it calculates the value of w.i have tried using this function but i dont get any result post_x & post_c from the form but gives me any error

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        this is not even PHP syntax. you should read a PHP tutorial to get familiar with PHP first.

        Comment

        Working...