Gossamer Forum
Home : Products : DBMan : Customization :

db_key (hidden)

Quote Reply
db_key (hidden)
Hi,

Is it possible to fill in the db_key (my field is called ID) without intervenience of the user, in other way in a hidden field ?

Thanks …


Quote Reply
Re: db_key (hidden) In reply to
In your sub html_record_form you could use:

|;
if ($per_admin) { print qq|
<TR><TD><$font>ID:</font></TD></TD><INPUT TYPE="TEXT" NAME="ID" SIZE="5" VALUE="$rec{'ID'}" MAXLENGTH="10"></TD></TR>
|;
}
else {
print qq| <TR><TD colspan=2><input type="hidden" NAME="ID" VALUE="$rec{'ID'}"> |;
}
print qq|

Hope this helps

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/