• 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: Script called after form has been processed

Script called after form has been processed 8 years 10 months ago #35182

Hello support,

My client uses a script to take Paypal payments. The script is below...
if($_POST['form']['feespayable'] != '0')
{
$business = 'their@address.here';
$item_name = 'TYCT Renewal Fees';
$currency_code = 'GBP';
$amount = $_POST['form']['feespayable'];
$return = 'http://theirurlhere.org.uk/provider-application-thank-you';
header('Location: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business='.$business.'&item_name='.$item_name.'&currency_code='.$currency_code.'&amount='.$amount.'&return='.$return); exit();
}

They want the payment window to open in a new tab/window. Is that possible?

Thanks

David
Last Edit: 8 years 10 months ago by david.goode. Reason: Remove live addresses
The administrator has disabled public write access.

Script called after form has been processed 8 years 10 months ago #35342

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 634
  • Thank you received: 117
Hello,

The PHP header(); function can't perform the redirect in a new window, it will only redirect the current page to your destination URL. Performing a simple Google search on this matter will provide several results:

www.sitepoint.com/community/t/is-there-a...-a-new-window/3842/3
stackoverflow.com/questions/950518/redirect-in-a-new-window
stackoverflow.com/questions/24340066/redirect-php-to-new-window
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!