This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Default Value


  1. comptech520
    Member

    Hi,

    I have a PHP variable called $ID and on the page where I have the MachForm form in an AJAX popup, it loads $ID into the index.php page (where the ajax popup link is), and want to fill that as the default value on a specific field.

    So I entered <?php echo $ID;?> as the default value and this showed up on the form "<?php echo $ID;?>", how can I get the variable to populate the field.

    Posted 12 years ago #
  2. yuniar

    You can't use PHP code to set default values.

    However, you can use GET parameters for this. More information here:
    http://www.appnitro.com/doc-url-parameters


    MachForm Founder

    Posted 12 years ago #

RSS feed for this topic

Reply