HI all
Please take a look at the below table rows.
Ideally I would like to know how I can efficiently multiply the results (user selection * user entered quantity)
now have I made this too difficult for myself? Is there a simpler way to do it? Yet again I feel I have bitten off more than I can chew.
[text]<tr>
<td width="50%" scope="col" align="left">Carpets</td>
<td width="20%" scope="col" align="center">Quantity*</td>
<td width="30%" scope="col" align="left">Price**</td>
</tr>
<tr>
<td colspan="3"><hr></td>
</tr>
<tr>
<td align="left"><label>
<input type="checkbox" name="Carpets" value="Kitchen" id="Carpets_0">
Kitchen</label></td>
<td align="center"><label for="Carpets_0"></label>
<input name="Kitchen" type="text" id="Carpets_0" size="4" maxlength="4"></td>
<td align="left">£30.00</td>
</tr>
<tr>
<td align="left"><label>
<input type="checkbox" name="Carpets" value="Bedroom" id="Carpets_1">
Bedroom</label></td>
<td align="center"><label for="Carpets_1"></label>
<input name="Bedroom" type="text" id="Carpets_1" size="4" maxlength="4"></td>
<td align="left">£30.00</td>
<tr>[/text]
Thank you in advance for any help you can give me here.
Arnora
help with mathematics
Moderator: General Moderators
Re: help with mathematics
Are the checkboxes necessary? Relying only on quantity inputs with default values of zero might simplify things.
-
crazycoders
- Forum Contributor
- Posts: 260
- Joined: Tue Oct 28, 2008 7:48 am
- Location: Montreal, Qc, Canada
Re: help with mathematics
Your question doesn't seem to have anything to do with PHP, it seems to be a client side problem regarding javascript interraction with the user.
Am i right?
Am i right?
Re: help with mathematics
This does seem like a better aproach I'll try this out and let you know. Thank you.McInfo wrote:Are the checkboxes necessary? Relying only on quantity inputs with default values of zero might simplify things.
Arnora