Gossamer Forum
Home : Products : DBMan : Installation :

Automatically date and ID in form

Quote Reply
Automatically date and ID in form
Normally ID should be imcremented and the date should be today when a new record is added. But how have i to realise this when i'm not using auto-generate html?

I thougth to put something like
ID = <input type="text"
name="$rec{'ID'}" size="15

Date =
<td >date_input <input type="text" name="$rec{'Date_input} value="&date" ">

i've put $date as global at the top of html.pl
$date = $get_date

why isn't working



Quote Reply
Re: Automatically date and ID in form In reply to
I'd try JPDenni's solution first, the one she replied to you at: http://www.gossamer-threads.com/...um5/HTML/000413.html

But you could also try it like you're doing.

Code:
$date = &get_date;

And
Code:
<input type="text" name="$rec{'Date_input'}" value="$date">



[This message has been edited by David (edited January 16, 1999).]