nigelsponge 0 Newbie Poster

Hi, I am using the explode function to bring some txt boxes from a database based on sizes. All is good but I need to only show the text boxes if there are sizes available for that particular garment. So the user can't enter any quantity into the text box. I'm not sure how to do that with a php generated text box. Code Sample below:

<?php
// Split the string up into an array of values
$dropdown_data = explode(",", $row_rsYouthSizes['Youth_Sizes']);
foreach($dropdown_data as $value) {
echo ' <td  width="10"  >'.$value.  '<td bordercolor="#FFFFFF">&nbsp;</td>'.'<td width="5"></td>'.'<td><input name="youthSize_quanity" type="text" size="3" maxlength="3" /></td>'.'<td bordercolor="#FFFFFF">&nbsp;</td>';
}

?>

thanks, nigel