Hey all, I hope I don't catch too much flame for asking this but I have been poking around the forums and can't seem to find a definite answer to this one...
I have a form that loads up the users name and email address and allows them to change it.
So I figured to update the JUser object all I had to do was put this code:
in the "On Submit code - before sending email" field but I guess I don't understand how that field is used..
Could anyone point out my mistake?
I have a form that loads up the users name and email address and allows them to change it.
So I figured to update the JUser object all I had to do was put this code:
<?php
$user = JFactory::getUser();
$user->name = JRequest::getVar('name');
$user->email = JRequest::getVar('email');
$user->save(true);
?>
in the "On Submit code - before sending email" field but I guess I don't understand how that field is used..
Could anyone point out my mistake?