Forums

Redirect URL problem

Marizu 14 Feb, 2014
Hi, my name is Marilena, sorry for my english! 😀
I have a problem with a form with chronoform.
I made a form for booking an apartment paying with paypal. In the actions, I add redirect user and redirect url as you see but when I send the form I obtained a page with the correct redirect url but it says to click to continue. So I added the code <?php
$mainframe = JFactory::getApplication();
$mainframe->redirect("https://www.paypal.com/cgi-bin/webscr");
but now the redirect go to the paypal home page not the payiment page. I think I must change something in the code, but I do not know how.
Could you please help me?
Many thanks!
GreyHead 15 Feb, 2014
Hi Marilena,

If you use a ReDirect URL action then you need to leave the Target URL box in the Redirect User action empty.

Also you have the Debugger turned on, that is why you see the link in the output. Please delete the Debugger action and re-test.

Bob
Marizu 17 Feb, 2014
Hi Bob,
now the form works perfectly! Many thanks for your help!
This topic is locked and no more replies can be posted.