• 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: +7days

+7days 10 years 7 months ago #28757

  • info2649
  • info2649's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
hello, I'd like to add seven days to the field [au]
if(isset($_POST['form'])){
$_POST['form']['au'] = $_POST['form']['du']. strtotime,"+7 day";
}
my code does not work
The administrator has disabled public write access.

+7days 10 years 7 months ago #28760

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
In order to provide help, please provide an accurate description of your scenario.
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

+7days 10 years 7 months ago #28765

  • info2649
  • info2649's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
I would copy the date field and add 7 days in the new field
The administrator has disabled public write access.

+7days 10 years 7 months ago #28770

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
To achieve this scenario, follow these steps:

1. create a hidden field (for this example I will name it hidden);
2. create a calendar field (for this example I will name it cal);
3. head over to Form Properties > PHP Scripts > Scripts called on form process and insert the following:
$_POST['form']['hidden'] = date('d.m.Y',strtotime($_POST['form']['cal'].'+ 7 days'));

Please keep in mind that the above code will create a date in the following format: 9.15.2014

More examples can be found here:
http://www.rsjoomla.com/support/view-article/97-date-operation.html
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: info2649

+7days 10 years 7 months ago #28775

  • info2649
  • info2649's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Thank you all is good
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!