• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: fetch $result and use it in the silent post case

fetch $result and use it in the silent post case 13 years 10 months ago #13958

Hello,

How can we use the $result of a silent post form submission.
For instance, I want to fetch the result into the site and use it in any one of the following scenarios:
- display a success/failure popup msg etc
- update a joomla user parameter/session variable

also, there are three areas in the script section of a form
1)Script called on form display
2)Script called on form process
3)Script called after form has been processed

I tried to execute the below code from the three areas one at a time, and it only works from the first area (Script called on form display).
$session =& JFactory::getSession();
$suser = $session->get("user");
$user =& JFactory::getUser($suser->id);
$user->email = "mmm@yahoo.com";
$user->save(true);
thanks
Last Edit: 13 years 10 months ago by alexp.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!