hjkok50
Member
Hello,
Can anybody help me out with some php to set a default value in a date field?
I want to add one hour to the value of another field called 'activiteit___van', so I tried several php statements in de default box. Latest settings are:
$v=JRequest::getVar('activiteit_van');
$time=strtotime("+1 hour");
$t=date($v,$time);
return $t;
no result whatsoever.
What am I doing wrong?
thanks for responding,
Henk
Can anybody help me out with some php to set a default value in a date field?
I want to add one hour to the value of another field called 'activiteit___van', so I tried several php statements in de default box. Latest settings are:
$v=JRequest::getVar('activiteit_van');
$time=strtotime("+1 hour");
$t=date($v,$time);
return $t;
no result whatsoever.
What am I doing wrong?
thanks for responding,
Henk