:?: HI Guys...:'(
can anyone of you knows how to make a quick qoutations..
By the way i'm mark a newbie in programming..and here's my problem..
i would like to create a quick quote for my project that can solve a simple mathematical quotations..like for example when you enter your height and width it will convert it in Square foot/feet.
and here's the complete formula for that
(width * height / 144 = square foot) but i don't know how to code it in php.
i know how to code it in visual basic but in PHP. it's hard for me.
just a little hint. to make it easier for you to understand.
all you need for that thing is a 3 textbox and a calculate button where the 1st texbox is for height, the 2nd texbox is for the width, the 3rd texbox is for the conversion of width in height to square foot. ... note: formula for this (width * height / 144 )
and a calculate button where when you click it, it will answer the quick quote..
or i mean the 3rd text box...
can anyone of you can do that..plz help me..
it will be a great honor to me if yo can do that..
thankz a lot...
from mark

here is the php code

<?
$var_width=$_REQUEST['width'];
$var_height=$_REQUEST['height'];

$squarefoot=(($var_width * $var_height)/144);
?>

<html xmlns="http://www.w3.org/1999/xhtml">

<form name="frm" action="" method="post" >

Width <input type="text" value="" name="width" /><br /><br />
Height <input type="text" value="" name="height"  /><br /><br />
Result <input type="text" readonly="yes" name="result" value="<?=$squarefoot?>"  /><br /><br />
<input type="submit" name="btn" value="Calculate Result"  />
</form>

</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.