Find and store user information

micker 21 Jun, 2018
hello
i create a light contact form for my registred user
i want to get user name + user email for hidden field and email to administrator ...
how to acheive this regards
micker 21 Jun, 2018
worked for chronoform 5 ?
micker 21 Jun, 2018
I create a custom code in submit part (top)[pre]<?php
$user = \JFactory::getUser();[br]$form->data['user_email'] = $user->email;[br]$form->data['user_name'] = $user->name;[br]?>[/pre]
and use {user_email} and {user-name}[br]in my to dynamique that correct ?
GreyHead 22 Jun, 2018
Hi micker,

Yes.

Bob
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger