Josepheuan Posted February 20, 2009 Share Posted February 20, 2009 Hi Just getting back in to learning PHP. I need to make a quote form for my site. I need 2 boxes, one for Width and one for Height, so customers can pick a custom size for pictures. So I was wondering how do I set it up so I basicly works out: Cost * Width * Height + OtherCost = ? Thanks Joseph Link to comment https://forums.phpfreaks.com/topic/146096-solved-quote-form-help/ Share on other sites More sharing options...
farkewie Posted February 20, 2009 Share Posted February 20, 2009 This may get you started.... <?php $servicefee = 2.0; $Metrecost = 3.4; $width = 30; $height = 50; $cost = ($width * $Metrecost) + ($height * $Metrecost) + $servicefee; print $cost; ?> else http://php.net/math Link to comment https://forums.phpfreaks.com/topic/146096-solved-quote-form-help/#findComment-766971 Share on other sites More sharing options...
Josepheuan Posted February 20, 2009 Author Share Posted February 20, 2009 Thanks for the quick reply and the help! Link to comment https://forums.phpfreaks.com/topic/146096-solved-quote-form-help/#findComment-766999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.