![Picture of Angela Gann Picture of Angela Gann](/graphics/unknown.gif)
Angela Gann - 2007-06-30 01:09:32
I am new to using this class and decided to try it out. When I did the date class, I'm getting a message that I'm missing arguments 3-8, though I set up my date input field the same way Manuel did in his presentation.
In addition to the code saying arguments 3-8 were missing, I'm also getting a message that the date_class::LoadInputValue method is undefined. I just went through the date_class file and I don't see LoadInputValue in there anywhere.
Am I missing a class the date_class is dependent on?
Here is what I have set up in the INPUT array:
$form->AddInput(array(
"TYPE"=>"custom",
"NAME"=>"reg_date",
"ID"=>"reg_date",
"CustomClass"=>"date_class",
"LABEL"=>"Registration Date",
"VALUE"=>strftime("%Y-%m-%d"),
"FORMAT"=>"(day)/(month)/(year)",
"Months"=>array(
"01"=>"Jan",
"02"=>"Feb",
"03"=>"Mar",
"04"=>"Apr",
"05"=>"May",
"06"=>"Jun",
"07"=>"Jul",
"08"=>"Aug",
"09"=>"Sep",
"10"=>"Oct",
"11"=>"Nov",
"12"=>"Dec"
),
"ACCESSKEY"=>"P",
"Optional"=>1
));