Gossamer Forum
Home : Products : DBMan : Installation :

Modify and date field wrong

Quote Reply
Modify and date field wrong
In the html_form, [hub] I've [Ian] made date fixed so that it cannot be changed.(It [changeover] is only the date entered and need not be changed) When I go to modify a record, I get the message "Date (Invalid date format)".

In viewing what is being entered, I get, for example, "6/26/01~~6/26/01", as if it is reentering the old date but not deleting the new one.

If I delete the old one before clicking modify, the date is entered as "~~6/26/01", again invalid format.

What must I do so that when a record is ADDED, the present date is entered, but when a record is MODIFIED, the date is not changed?

Thanks!

Chris Johnson


Quote Reply
Re: Modify and date field wrong In reply to
can't you just call: $rec{'date'} or add it as a hidden field?

just an idea until a real guru stops by.

good luck

**************************************
on the pages in between ...
Quote Reply
Re: Modify and date field wrong In reply to
I actually left it out of the form as well as tried to just show the data and not have a field to edit it. And I still got the error.

Chris

Quote Reply
Re: Modify and date field wrong In reply to
ummm ... I just remembered that there was a thread recently about dates and how the date format was 2001 not 01, this might be the problem.

sorry, I'm not a perl guru, just a GT junkie.

good luck

**************************************
on the pages in between ...
Quote Reply
Re: Modify and date field wrong In reply to
Don't know if this is related... but recently I was experiencing something similar and it turned out that I had two input boxes with the same name. Example:

<INPUT NAME="bob" VALUE="$rec{'bob'}">
<INPUT NAME="bob" VALUE="$rec{'joe'}">

This was because had cut & pasted some codes and forgot to change one of the names.

Perhaps this is your problem also?

Good Luck - Mike.