Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    I give you an idea. In the template file of the active theme in WordPress, you can check if the parameter is received, and create global javascript variables with the value of the parameter. For example, suppose the parameter is called myparameter, in your template you can check the existence of paramenter, and create the global variable with its value:

    <script>
    var myvariable = “<?php echo ( (isset($_REQUEST[ ‘myparameter’ ])) ? $_REQUEST[ ‘myparameter’ ] : 0 ); ?>”;
    </script>

    and then, use myvariable in the equations of your form. For example:

    fieldname1*myvariable

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Passing parameters from other site’ is closed to new replies.