Jump to content

How do I pass a parameter through the URL to a custom form?


Dean K

Recommended Posts

I have set up a direct debit payment handler, and can redirect to a 3rd party form with this:

$url = JUri::base(). '/index.php?option=com_rsform&formId=1';

        // Redirect to payment instructions
        $complete_url = $url;

 

This is as far as I got:

 

https://www.mywebsite.com/index.php?option=com_rsform&formId=1
 

I need help to add the order id and listing title so I can catch them in the form.

 

I started with this:

 

$order_data = array('order_id'=>$order['PaidOrder']['order_id']);

 

But can't get the array on to the end of the url so not sure if I'm on the right track here. What do I need to do to end up with this url below?

 

https://www.mywebsite.com/index.php?option=com_rsform&formId=1&form[order_id]=123&form[listing_title]=ABC%20COMPANY

Link to comment
×
×
  • Create New...