There is:

<?php defined('_JEXEC') or die; require_once("components/com_quickform/classes/buildform.php"); $qf = new QuickForm(); echo $qf->getQuickForm((int)$params->get('id')); 

You must select the id value in the drop-down list.
I tried this:

 <?php require_once("components/com_quickform/classes/buildform.php"); $qf = new QuickForm(); ?> <select echo $qf->getQuickForm((int)$params->get());> <option value="0" >Перейти</option> <option value="get('id')">1</option> <option value="get('id2')">2</option> </select> 

Does not work.

How to do? Thank.

    1 answer 1

     <?php require_once("components/com_quickform/classes/buildform.php"); $qf = new QuickForm(); $id = $qf->getQuickForm((int)$params->get('id')); $id2 = $qf->getQuickForm((int)$params->get('id2')); ?> <select> <option value="0" >Перейти</option> <option value="<?php echo $id ?>">1</option> <option value="<?php echo $id2 ?>">2</option> </select> 

    You have problems with the syntax of the code. Any PHP code inserts inside HTML need to be wrapped in <?php ?> Tags

    WRONG

     <select echo $qf->getQuickForm((int)$params->get());> <option value="get('id')">1</option> 

    RIGHT

     <select <?php echo $qf->getQuickForm((int)$params->get());?>> <option value="<?php get('id') ?>">1</option> 

    Some kind of porridge with these get() . Does the function return a value or display it? If the first, then it should be printed echo get()

    • does not work. Discloses the 'id' data. Take a look for yourself - on the right "Service order". frontier.com - Oleg
    • @ Oleg causes of inoperability can be a million and a small cart. Specifically, in your code there was an error with the output values ​​in html, which I corrected. Next you need to make the diagnostics yourself. See what comes back here: $qf->getQuickForm((int)$params->get('id')); what is displayed in the browser, etc. - rjhdby
    • @ Oleg corrected the code, did not notice another "bookmark". - rjhdby
    • So the fact of the matter is already broke the whole head. I tried to insert forms (items {QuickForm id = 01} of the plugin that inserts the form into the content) into a separate module, the result is the same — the form itself is revealed. - Oleg