Gossamer Forum
Home : Products : Links 2.0 : Discussions :

How do you increase ID field ?

Quote Reply
How do you increase ID field ?
Hi,
My links ID's are more than four digits now and increasing ! Consequently things like jump.cgi don't work. How do increase the size of the ID $db_key field ?
Thanks...
BLake
Quote Reply
Re: How do you increase ID field ? In reply to
Hmmm, jump.cgi should work since the width of the ID is not preset anywhere, at least, not in Links v1.1 which I assume you are using? I assume this because v2.0 does have the maximum width define and it goes to 8 digits.

In links.def, find the line that reads:

Quote:
<TD VALIGN="TOP" WIDTH="450"> <INPUT TYPE="TEXT" NAME="ID" VALUE="$rec{'ID'}" SIZE="3" MAXLENGTH="3"></TD></TR>

Change the SIZE="3" to the number of digits you want to show on the add form and the MAXLENGTH="3" to the maximum number of digits you want to allow for the field. I set mine to 5 and 8 respectively. Smile

------------------
Bob Connors
bobsie@orphanage.com
www.orphanage.com/goodstuff/
goodstufflists.home.ml.org/




[This message has been edited by Bobsie (edited February 10, 1999).]