Forum Moderators: coopster
style='background-color:#FFFF99'> ";
}
else
{
echo "
<td>Tel:<br/><input type='text' name='tel' value='".$tel."' tabindex='10'
style='background-color:#FFFF99'> ";
}
Is there a better way of doing it as it makes the code extremely long when I have a form with say 10 input boxes, etc.
for ($i=1; $i<11; $i++)
{
if ($inputboxname=="tel")
{
echo "
<td style='color:red; font-weight: bold;'>Tel:<br/><input type='text' name='tel' tabindex='".$i."' value='".$tel."'style='background-color:#FFFF99'> ";
}
else
{
echo "
<td>Tel:<br/><input type='text' name='tel' value='".$tel."' tabindex='".$i."'style='background-color:#FFFF99'> ";
}
}
dc