How to incorporate this? (javascript/php/html)

Associate
Joined
22 Aug 2011
Posts
240
Here's my code:

<form name="finish" method="post" action="#">
<input name="height" type="text" id="height" placeholder="enter height" />
<input name="width" type="text" id="width" placeholder="enter width" />
<input name="depth" type="text" id="depth" placeholder="enter depth" />
<input type="button" type="button" id="buttonenter" value="submit" />
</form>
<br />

<script type="text/javascript">
var price = 105;
if( price == 100 ){
document.write("Your product qualifies under the Normal wrapping service.");
}else if( price < 100 ){
document.write("Your product qualifies under the Small wrapping service.");
}else if(price > 100 ){
document.write("Your product qualifies under the Large wrapping service.");
}else{
document.write(unknown quantity");
}
</script>

Obviously by the form created, I want the users to input their height/width/depth and if when they press "submit" if then the following:

>100-200 - large
<10-60 - small
== 65-100 - normal

But i have no idea how to do it and I need to implement it for my third year project, anyone want to help a rookie out?
 
Back
Top Bottom