How to retrieve a script function value in PHP value?

  • Meghana.H.V.
    Asked on January 21, 2018 at 2:43 AM

    Thank you in advance

  • Welvin Support Team Lead
    Replied on January 21, 2018 at 11:43 AM

    I'm sorry, but I don't think I understand the question. Are you trying to pass the form data to another page by PHP/Script? If so, you might want to check our Send Post feature below;

    https://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page 

    If not, kindly elaborate and give us an example if possible. 

  • Meghana.H.V.
    Replied on January 21, 2018 at 11:43 PM
    Thank you,But i am having ongoing to retrieve the scripts function value to
    my php varaible
    ...
  • Meghana.H.V.
    Replied on January 22, 2018 at 2:43 AM
    i will attach you my documents wait, I want to
    retrieve resultAccValue,resultPropValue and resultViewValue to php
    variables in same form
    with regards,
    Meghana H V
    ...
  • TREVON
    Replied on January 22, 2018 at 7:45 AM

    Apologies but still the issue you do have is not yet clear. Would you kindly clarify on what you intend to achieve. Kindly share an image illustration if possible. Below is a guide on how to upload images to the Jotform Forum.

    https://www.jotform.com/help/438-How-to-Post-Screenshots-to-Our-Support-Forum



  • Meghana.H.V.
    Replied on January 22, 2018 at 8:43 AM
    This is the code , i want to retrieve resultViewValue,resultPropValue &
    resultAccValue in php variable like ex: in "$test" is a php variable, i
    need the value of the respective function in seperate variables
    ...
  • Sabbir
    Replied on January 22, 2018 at 9:19 AM

    If I understand you correctly, you want to get the javascript values into your php script as a php variable.

    Generally, it can be done by sending the javascript values as a parameter to the php script.

    For example:

    // javascript code

    window.location.href = "yourscriptname.php?resultViewValue=Value&resultPropValue=Value&resultAccValue=Value";


    //php code

    <?php

    $resultViewValue = $_GET['resultViewValue'];

    $resultPropValue = $_GET['resultPropValue'];

    $resultAccValue = $_GET['resultAccValue'];

    ?>

    Hope this will give you the idea.

    If you need any further assistance in this regard, please let us know.

  • Meghana.H.V.
    Replied on January 22, 2018 at 9:43 AM
    Thank u so much ... Will try your code tomorrow
    ...
  • Meghana.H.V.
    Replied on January 22, 2018 at 11:43 PM
    Hi, thanks for help, but i dont want the page to get loaded .Please help me
    how can i do?
    ...
  • liyam
    Replied on January 23, 2018 at 4:59 AM

    My apologies, but I am having difficulty understanding your requirements. Perhaps you can share with us your documents which you have mentioned previously from the previous responses by sending an email to liyam@jotform.com and support@jotform.com with the subject line Thread #1356205

    I shall await for your response.

    Thanks.

  • Meghana.H.V.
    Replied on January 23, 2018 at 5:43 AM
    Hello i want to display my analytics audit by selecting particular
    account's property and view , based on my selection i want audit to be done
    Have to run index form,through that next form googleapitest...As it
    includes authentication i dont want to load my page for every action like
    clicking my button
    For Ex : http://mixedanalytics.com/en/dashboard#/app
    ...
  • liyam
    Replied on January 23, 2018 at 7:17 AM

    I'm afraid I'm still not understanding you here.

    Can you share with us the actual code? Also, can you tell us the link to your JotForm-based form which you plan to use your code with? This way we can just proceed on providing actual code solutions rather than trying to understand the concepts with your analytics audit result.

    Thanks.

  • Meghana.H.V.
    Replied on January 23, 2018 at 11:43 PM
    Hello, thanks for the reply...its ok i will try to solve
    ...