Jump to content

markbloomfield

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by markbloomfield

  1. Nevermind, I have it working Thanks for your comments!
  2. Sorry I made that last reply regarding the URL on my mobile and guessed the URL... The correct URL is as follows: http://designshowcase.co.za/share/calculate.php Thanks i understand. what i'll do then, is have the user insert his 2 bits of information in a form, and then post to the page that does the calculation and displays the result. cool?
  3. heya you can see the error here www.designshowcase.co.za/share/calculator.php tx
  4. Ok cool I'll have a look at a JS option... Would you mind providing me with the PHP solution to this on a page reload then to do the calculation? Leave JS out of the equation for this example.. How wold this calculation be done? Thanks very much for your help
  5. What I thought would work is this: <?php $application_amount = 100; $fuel_price = 9; $fuel_usage = 10; $naf-tech_cost = $application_amount * 0.132; $rand_savings = (($fuel_price * $fuel_usage * 0.125) - $naf-tech_cost); echo $rand_savings; ?> But it didn't Plus to the above, I must still add the 'realtime' calculation part... <-- PHP Noob Thanks for your help!
  6. Hello guys I need to put together a calculator that I'm hoping you can help me with... It's a calculator that does/has the following Fields - (a)Application amount (constant to be changed only by administrator)Unit =ml/l (b)Fuel Price (variable to be entered by user)Unit= Rands ©Fuel Usage (variable to be entered by user)Unit = l/month (y)Cost of Item in Rands= (a x 0.132) (z)Saving in Rands = ((b x c x 0.125) – y) ------------------------ It's going to be on a WordPress page so the value for (a) that I will change, will be a custom_field on one of the WP pages that I can go in & change. The user will insert his values for (b) and © and then the 2 calculation values will be (y) and (z) The totals must be displayed in realtime as the user types. Thanks very much for your help here Regards Mark
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.