Jump to content

can anyone help me to solve this? I'm a beginner can't really figure out how to do it

Recommended Posts


<!DOCTYPE html>
<form action="Practice 1.1.php" method="post">
Catagory Code:<input type="text" name="n" size="2"><br>
Units Used <input type="text" name="u" size="2">
<input type="submit" value="Calculate">
if ($b<=3.75) {
	echo "";



Link to post
Share on other sites

Did you mark your own post as being "the solution" because you figured out the answer yourself? Or are you still having problems?

Link to post
Share on other sites
3 hours ago, Barand said:

Sorry, don't know a solution that will give you 914.01.


Almost: 4.19 * first 75 units (314.25) + 5.72 * next 92 units (526.24) + 30 flat charge = 870.49, +5% VAT = 914.01

Link to post
Share on other sites

DOH! 🙄 Forgot to include the flat charge in the spreadsheet total formula (copied the "Units" total formula) and also completely missed the VAT element.

Thus demonstrating the perils of copy/paste - a warning to all.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.