• 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: Pass a form field value into a php script?

Pass a form field value into a php script? 8 years 11 months ago #35005

  • chris682
  • chris682's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Hi,

We have a form collecting, amongst other data, forename and surname. We also have a php script called on form process:

if(!defined('DS')){
define('DS',DIRECTORY_SEPARATOR);
}

$conversion_data = array(
"name" => "CMLF Submission",
"component" => "com_rsform",
"extended_name" => "Check My Legal Fees form submission",
"type" => 1,
"value" => 100,
"reference_id" => 123,
"approved" => 0,
);

require_once(JPATH_SITE.DIRECTORY_SEPARATOR.'components'.DIRECTORY_SEPARATOR.'com_affiliatetracker'.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'helpers.php');
AffiliateHelper::create_conversion($conversion_data, $user_id);

This script works fine, however we would really like to pass the forename and surname data from the form into the "name" part. I tried this:

"name" => "{Forename:value}{Surname:value}",

But this failed, it just logged the actual text here ({Forename:value}{Surname:value}).

Is there a way we can capture the data from {Forename:value}{Surname:value} and pass it into this part of the php script?

Many thanks for any help.

Chris
The administrator has disabled public write access.

Pass a form field value into a php script? 8 years 10 months ago #35229

  • chris682
  • chris682's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
Is anyone able to help here?

Many thanks,

Chris
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!