PDA

View Full Version : HELP - Send Qty Text box only when used



ameharhughes
01 Jul 2009, 04:54 AM
Hi

Below is my HTML code for my form, its uses a text box for quantity.

My question is how to get the item and Qty send only when a Qty has been entered?
If tried all I can think of and google has been to no avail.



<form id="leafletorder" method="post" action="leaflet.php">
<table border ="0">
<tr>
<td colspan="3">&nbsp;</td>
</tr>
<tr>
<td width="41" align="center"><B>Quantity:</FONT></td>
<td width="264" align="center"><B>Leaflet Name</td>
<td width="65" align="center"><b>Price<br />(each)</b></td>
</tr><tr>

<td align="center"><input type="text" name="PROD_Invitation to Think_0.05" size="3" maxlength="3" onchange="CalculateTotal(this.form)" /></td>
<td><span class="xl94" style="border-left:none">Invitation to Think</span></td>
<td align="right">£0.05</td>
</tr><tr>

<td align="center"><input type="text" name="PROD_Invitation_0.05" size="3" maxlength="3" onchange="CalculateTotal(this.form)" /></td>
<td>Invitation</td><td align="right">£0.05</td>
</tr><tr>


Any help is highly appreciated.

Many Thanks in Advance
Aaron