Gossamer Forum
Home : Products : DBMan : Installation :

how do I include the ID field into a static form?

Quote Reply
how do I include the ID field into a static form?
I'm using a custom add record form and can't figure out how to automatically include the next number (kept in the default.count file) in the form. It leaves it blank and results in a 500 error for the next person that tries to add a record. Help!

DH

Quote Reply
Re: how do I include the ID field into a static form? In reply to
Have you tried including a hidden field in your form? Something like:

<INPUT TYPE="hidden" NAME="ID" VALUE="$rec{'ID'}" SIZE="5" MAXLENGTH="8">

Quote Reply
Wow! Thank you! In reply to
Thank you very much! Are those instructions in the documentation? I looked and looked and searched on the web and everything but couldn't find how to do it.

Many thanks,
DH :-)

Quote Reply
Re: Wow! Thank you! In reply to
I wasn't able to find specific referennce in the documentation, guess my initial awareness of needing the field was in duplicating the default input form in html.pl and awareness increased upon realizing that all fields defined in default.cfg must have a value (default or input) in the initial form creating the record. The learning curve on this program is pretty easy to pick up, you'll do great.