Forums

Redirect to custom url base on variable in my form

maxxoros 09 Aug, 2009
Hi

After submit form, I want to redirect to a custom url, example

/index.php?option=com_chronoconnectivity&connectionname=display_danhmuc&donvi=<?php $header_tt[0]->ID_DONVI ?>



However, it seem that re-direct url doesnt support php code, so how could I do this

Thanks for any help
GreyHead 10 Aug, 2009
Hi maxxoros,

Set the ReDirect URL in the OnSubmit code (or use the ReDirect Plugin to do it for you).
        $MyForm =& CFChronoForm::getInstance();
        $MyForm->formrow->redirecturl = $uri;

Bob
This topic is locked and no more replies can be posted.