Gossamer Forum
Home : Products : DBMan : Installation :

Input once for two feilds

Quote Reply
Input once for two feilds
Does anybody know how I can set up an input so that one input will go to two feilds.

I am generating usernames and passwords and I want part of the username to be the Firstname field.

Thanks
Stan
Quote Reply
Re: Input once for two feilds In reply to
You'd need to add something to sub add_record in db.cgi.

If your field that has the data is "field1" and the field you want to fill in is "field2," very early in add_record, add

$in{'field2'} = $in{'field1'};

This just copies the whole contents of field1 into field2. If you wanted to do some other manipulation first, this would be the place you'd do it.


------------------
JPD