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
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
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 ?
$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 ?
This topic is locked and no more replies can be posted.