Jump to content

using list/menu calculation


Go to solution Solved by requinix,

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/275300-using-listmenu-calculation/
Share on other sites

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?
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.