• 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: mm/dd/yyyy + dd = mm/dd/yyyy

mm/dd/yyyy + dd = mm/dd/yyyy 13 years 4 months ago #15837

  • danp
  • danp's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
In this site there's this script that returns a date result of the sum of the current date and a number of days entered

if(isset($_POST)){
$_POST = date('m/d/Y',strtotime(' +'.$_POST.' days'));
}

I would like to know how you can modify it so that the sum is between a given input into a form field and a number

Thanks
The administrator has disabled public write access.

Re: mm/dd/yyyy + dd = mm/dd/yyyy 13 years 4 months ago #15847

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

This can be achieved by placing the script in the "Scripts called on form process" area and you can retrieve the sum from the field inputs,through the $_POST variable:

www.rsjoomla.com/support/documentation/v...602-php-scripts.html

and use it in the script in order to set the date as you wish.
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!