When populating my customer entry form I would like the Customer # field set to read only only if I'm not in 'ADD' mode. I use this code to set what script is to call based on my input variable:
if ($key == "**add"
{
$type="addCust.html";
}
else
{
$type="updCust.html";
As part of the 'else' code I would like to set this 'cust' field:
<input type="text" name="cust" value="<? echo $line2[Cust]; ?>" size="33" tabindex="1" ></td>
to readonly=true. It's probably simple but I can't find the correct syntax.
Thanks in advance.
Scott
if ($key == "**add"
{
$type="addCust.html";
}
else
{
$type="updCust.html";
As part of the 'else' code I would like to set this 'cust' field:
<input type="text" name="cust" value="<? echo $line2[Cust]; ?>" size="33" tabindex="1" ></td>
to readonly=true. It's probably simple but I can't find the correct syntax.
Thanks in advance.
Scott