enot Posted March 6, 2013 Share Posted March 6, 2013 Hi all i newbie in php and having problem on my php scripts which is to calculate using drop down selection menu..refer to this script below; too complicated to me to do it..pls help my tutorial assignment... basic info : Total premium = land use x acreage (in acre) // which is land use refer to the dropdown selection value; // acreage selection type - if hectares = 2.471 acre Sq metre = acre ? ----script --- <body><form action="" method="post" name="calculateRLL" target="_blank" id="calculateRLL"> <p>LAND RATE CALCULATOR </p> <table width="910" border="0"> <tr> <td width="133" class="style5">Land Use : </td> <td colspan="2" class="style5"><select name="select" size="1"> <option value="Choose" selected="selected">Please Choose</option> <option value="Ag_town">Agriculture - Town Land (rm5,000 per acre)</option> <option value="Ag_Sub">Agriculture - SubUrban Land (RM2,500 per acre)</option> <option value="Ag_Country">Agriculture - Country Land (RM200 per acre)</option> <option value="Res_Terrace">Residential - Terrace (RM1,000 per unit)</option> <option value="Res_Semi">Residential - Semi Detached (RM3,000 per unit)</option> <option value="Res_Detached">Residential - Detached (RM6,000 per unit)</option> <option value="Com_Primary">Commercial - Primary Town(RM40,000 per unit)</option> <option value="Com_Sec">Commercial - Secondary Town (RM20,000 per unit)</option> <option value="Com_Rural">Commercial -Rural Town (RM10,000 per unit)</option> </select></td> </tr> <tr> <td class="style5"><span class="style5">Acreage *: </span></td> <td colspan="2" class="style5"> <span class="style5"> <label> <input name="Acreage" type="text" id="Acreage" size="13" maxlength="13" /> </label> <label></label> </span> <span class="style5"> <label> </label><label></label> <select name="acrage" size="1" id="acrage"> <option value="None">None</option> <option value="Acres">Acres</option> <option value="Hectares">Hectares</option> <option value="SQMetres">SQ Metres</option> </select> </span> <span class="style5"> <label></label> <label></label> * applicable for Agriculture Land </span></td> </tr> <tr> <td><span class="style5">Total Land Premium : </span></td> <td width="515"> <span class="style5"> <input name="premium" type="hidden" id="premium" /> </span></td> <td width="248"> </td> </tr> <tr> <td><span class="style6"></span></td> <td><span class="style5"> <label> <input name="Calculate" type="submit" id="Calculate" value="Calculate Premium" /> <input type="reset" name="Reset" value="Reset" /> </label> <label></label> </span></td> <td><span class="style6"></span></td> </tr> </table> <p> <label></label> <label></label> <label></label> </p></form></body> Quote Link to comment https://forums.phpfreaks.com/topic/275300-using-listmenu-calculation/ Share on other sites More sharing options...
requinix Posted March 6, 2013 Share Posted March 6, 2013 PHPFreaks.com Questions, Comments, & Suggestions This is NOT a help forum! Do not post topics asking for help not related to the website. We're not going to do it for you but we'll gladly help you through the problem. Speaking of, what is the problem? Quote Link to comment https://forums.phpfreaks.com/topic/275300-using-listmenu-calculation/#findComment-1416867 Share on other sites More sharing options...
enot Posted March 6, 2013 Author Share Posted March 6, 2013 sorry for that..how to include php script into dropmenu? Quote Link to comment https://forums.phpfreaks.com/topic/275300-using-listmenu-calculation/#findComment-1416870 Share on other sites More sharing options...
Solution requinix Posted March 6, 2013 Solution Share Posted March 6, 2013 Like how? Generating the list of options? Quote Link to comment https://forums.phpfreaks.com/topic/275300-using-listmenu-calculation/#findComment-1416871 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.