Hello,
I'm trying to add a email function to reply to the user who submitted it.
The email, with a custom code before works with this code:
But now I want the number 79 to be dynamic by using cf_user_id. I tried to load this by using DB Record Loader with request parameter as 'gebruiker'. This works because the tag {gebruiker} will give the id 79 when I add this tag to the email template.
But when I add gebruiker (or 'gebuiker' or $gebruiker) to the code, it won't work:
I really don't know how to do this the right way. I hope one of you can help me?
Thanks,
Erwin
I'm trying to add a email function to reply to the user who submitted it.
The email, with a custom code before works with this code:
<?php
$user =& JFactory::getUser(79);
$form->data['user_email'] = $user->email;
?>
But now I want the number 79 to be dynamic by using cf_user_id. I tried to load this by using DB Record Loader with request parameter as 'gebruiker'. This works because the tag {gebruiker} will give the id 79 when I add this tag to the email template.
But when I add gebruiker (or 'gebuiker' or $gebruiker) to the code, it won't work:
<?php
$user =& JFactory::getUser(gebruiker);
$form->data['user_email'] = $user->email;
?>
I really don't know how to do this the right way. I hope one of you can help me?
Thanks,
Erwin