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

01 Jul 2009, 05:54 AM

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">
<td colspan="3">&nbsp;</td>
<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>

<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>

<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>

Any help is highly appreciated.

Many Thanks in Advance