• 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: PHP Email Scripts if condition not working

PHP Email Scripts if condition not working 4 years 9 months ago #39330

  • ese105
  • ese105's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi

i need to send email based on condition. my code in php email script is

if($_POST == 'Accepted') {
$userEmail = 'NOTIFICATION OF ABSTRACT ACCEPTANCE ';
}
else
{
$userEmail = 'REGISTRATION NOTIFICATION ';
}

it should change the email subject to 'NOTIFICATION OF ABSTRACT ACCEPTANCE ' if abs-status value is 'Accepted'. now it only send email subject 'REGISTRATION NOTIFICATION'

i try check with print_r($_POST);die(); no value is return. but in database there is value 'Accepted'

someone can give me idea?
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!