how do you add two numbers using PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mikewooten
Forum Contributor
Posts: 169
Joined: Wed Feb 11, 2004 12:13 pm
Location: Duluth, Georgia
Contact:

how do you add two numbers using PHP?

Post by mikewooten »

I would like Shipping costs to be added to the total cost of products and
displayed on the Shopping cart page.
I think in some or most e-commerce sites, they have a option to "enter zip code to calculate shipping costs", how would you do that with PHP?
also does anyone know how to have a shipping cost option and add the shipping costs to the total amount?
here's my site if you want to take a look at it:
http://www.wootenmedia.com/wootenmusic8/
thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$newnumber = $number1 + $number2 .... :?
Post Reply