al3x8730 Posted July 1, 2008 Share Posted July 1, 2008 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... Link to comment https://forums.phpfreaks.com/topic/112814-super-simple-help-needed-please-take-1-second-and-help-me/ Share on other sites More sharing options...
DarkWater Posted July 1, 2008 Share Posted July 1, 2008 $part1 = (133.1) * (pow($number1, 3)); Link to comment https://forums.phpfreaks.com/topic/112814-super-simple-help-needed-please-take-1-second-and-help-me/#findComment-579440 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.