Home : Products : DBMan : Customization :

Products: DBMan: Customization: Re: [jnjhost] Trouble with Validate Records Mod: Edit Log

Here is the list of edits for this post
Re: [jnjhost] Trouble with Validate Records Mod
You still have some problems with your html coding.

<input type="hidden" name="$db_premium_field" value="$db_premium_field">

should be:

<input type="hidden" name="db_premium_field" value="$rec{'db_premium_field')">


print &build_radio_field($db_premium_field,$rec{$db_premium_field});

should be:

&build_radio_field("db_premium_field",$rec{'db_premium_field'}); print qq|


<input type="hidden" name="ent_date" value="$rec{$today}">
<input type="hidden" name="edit_date" value="$rec{$today}">

these fields should have the value being the same as the name of the field:

<input type="hidden" name="ent_date" value="$rec{'ent_date'}">
<input type="hidden" name="edit_date" value="$rec{'edit_date'}">


For the data entry date you could have it automatically insert today's date by using for instance:

ent_dt => [17, 'date', 20, 25, 0, &get_date(),''],

If you want the date modified for the 'edit_date' field then In sub html_modify_form_record, just after

my (%rec) = &get_record($in{'modify'});

add:

$rec{'edit_date'} = &get_date;

This will automatically enter the date the record was modified.

Not sure why you are using the sub html_record_form_mod??? Is this because you only want certain fields to be displayed when modifying a record? You would need to make all the fixes in any subs where you are defining the field inputs.

There are also several other subs which aren't defined with your db.cgi so that they know where to goto when you call these subs.

Are you sure everything was working properly prior to adding the validation mod?

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/

Last edited by:

LoisC: Jun 29, 2004, 11:09 AM

Edit Log: