• 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: Changing $_POST variables

Changing $_POST variables 12 years 6 months ago #15153

  • j37h3r
  • j37h3r's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 1
Since personalized support here is a bit to be desired Im opening this question up for others who can help:

Im trying to modify the $_POST data. I have a calculation that is performed using Javascript onclick. I cant have those values rounded during the calculation, I want the printed/emailed/stored results to be rounded.

Ive added the following to the "Script called on form process" on the form:

$r1_od = $_POST[form];
$r1_od = number_format($r1_od, 2);

Nothing's happening, Im still stuck with my original un-rounded values...
The administrator has disabled public write access.

Re: Changing $_POST variables 12 years 6 months ago #15171

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
Hello,

Please try using this instead:
$r1_od = floatval($_POST[form]['r1_od']);
$r1_od = number_format($r1_od, 2);
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Re: Changing $_POST variables 12 years 5 months ago #15496

  • s31523
  • s31523's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 25
Does this also work in RSForm as well? If not, is it not supported or just done differently?
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!