Jump to content

Adding / Mutiplying numbers in php


Guest

Recommended Posts

okay i know the following:

 

$a=5;
$b=10;
$c=($a*$b);

echo $c;

 

I know this is the basics for mupliying but i would like to do the following:

 

User types in a number say 10 and picks a product from a drop down menu of differnt products say a cookie from menu priced at 0.10

 

i would like it to mutiply these so 10 * 0.10 .

 

Its to make a sort of online qoute system.

 

Can anyone point me in the right direction? :)

 

many thanks

Link to comment
https://forums.phpfreaks.com/topic/150987-adding-mutiplying-numbers-in-php/
Share on other sites

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.