Gossamer Forum
Home : Products : DBMan : Installation :

Auot Date Insertion

Quote Reply
Auot Date Insertion
Hi all, hope someone can help me here. Im having problems displaying the date in a custiom made form. The date field has been configured in the db.cfg file and works with the autogenerated forms. I was trying to display it in my form with <input type="text" name="date" value=$rec{'date'}> but i get a blank date field when the form is output to the web. What am i doing wrong? Thanks for nay help

JDM
Quote Reply
Re: Auot Date Insertion In reply to
Make sure that your "date" field is configured with &get_date in your default.cfg file.

Regards,
Quote Reply
Re: Auot Date Insertion In reply to
Yes, i have double checked that. Have also added both of the date fixes, still nothing.
the following is the final line of my .cfg file :
date => [8, 'date', '15', '15', '0', '&get_date', '']
Have tried without the '' around &get date as well.
Then i've added to my form:
<input type="text" name="date" size="15" value=$rec{'date'}>

Thought i'd give you a little more info, thanks for the help Smile

JDM
Quote Reply
Re: Auot Date Insertion In reply to
Well, this is what I have for the Date field:

Code:
Date => [1, 'date', 12, 15, 1, &get_date, '']

You need to take the single quotes from the minimum and maximum length attributes of the field.

Also change the 0 for null to 1 to required.

It should work with what I have.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




[This message has been edited by Eliot (edited December 01, 1999).]