Jump to content

Super simple help needed, please take 1 second and help me!


al3x8730

Recommended Posts

Well, this isn't the easyest way to make this type of calculator I know, but I wanna make it this way. I'm trying to make a calculator that will imput the following equation to a number entered.

 

Equation: 133.1*Number^3

 

I have already made a html form:

 

<html><body>

<h4>Calculator</h4>

<form action="process.php" method="post">

Number: <input name="number1" type="text" />

<input type="submit" />

</form>

</body></html>

 

I just would like something that puts the above equation to the number.

 

Like...

 

<?php

$number1 = $_POST['number1'];

 

...

 

echo "Your answer is ". $part1;

 

?>

 

Thank you...

Archived

This topic is now archived and is closed to further replies.

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