• 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: Cannot Catching rsform after submit

Cannot Catching rsform after submit 13 years 3 months ago #12568

  • deno028
  • deno028's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi everybody!
I want to add this script into script Tab of rsform at the "Script called after form has been processed" in order to redirect to another page with my post, the script is:
<?php

$SECURE_SECRET = "AFDSEFDSFDSFEWFESF";
$vpcURL = $_POST["virtualPaymentClientURL"] . "?";

unset($_POST["virtualPaymentClientURL"]);
unset($_POST["SubButL"]);

$md5HashData = $SECURE_SECRET;
ksort ($_POST);

// set a parameter to show the first pair in the URL
$appendAmp = 0;

foreach($_POST as $key => $value) {
if($key!= 'form'){
// create the md5 input and URL leaving out any fields that have no value
if (strlen($value) > 0) {

// this ensures the first paramter of the URL is preceded by the '?' char
if ($appendAmp == 0) {
$vpcURL .= urlencode($key) . '=' . urlencode($value);
$appendAmp = 1;
} else {
$vpcURL .= '&' . urlencode($key) . "=" . urlencode($value);
}
$md5HashData .= $value;
//echo "<br>".$key."<br>".$value;
}
}
}

// Create the secure hash and append it to the Virtual Payment Client Data if
// the merchant secret has been provided.
if (strlen($SECURE_SECRET) > 0) {
$vpcURL .= "&vpc_SecureHash=" . strtoupper(md5($md5HashData));
}

// FINISH TRANSACTION - Redirect the customers using the Digital Order
// ===================================================================
//echo $vpcURL;
header("Location: ".$vpcURL);

// *******************
// END OF MAIN PROGRAM
// *******************

?>

But after the form submitted is not work. Can someone help me, I very appreciated. Thanh you!
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!