Do you support multi-sessions in a self-host WordPress site?

  • Profile Image
    juanmarcos
    Asked on April 29, 2013 at 12:03 AM

    I have a long form that may take several days to complete. Is there anyway to submit the form multiple times?

    The user would keep adding data to the form until all the info was complete (multi-page form) and may submit the info several times in multi-sessions is it possible???

    One more thing the form will be in a self-host WordPress site. so I want to know how to use the "?session=$username" format cuase the clients will be sining on WordPress and not in JotForm site.

    Thanks

  • Profile Image
    EltonCris
    Answered on April 29, 2013 at 01:29 AM

    @juanmarcos

    That might be possible. Try to use the following.

    <?php

    $user_id = get_current_user_id();

    ?>

    <script type="text/javascript" src="http://form.jotformpro.com/jsform/1234567890?session=<?php echo $user_id; ?>"></script>

    Make sure to replace your form URL. If that doesn't work, you can use the other one below.

    <?php global $user_email;

          get_currentuserinfo();

    ?>

    <script type="text/javascript" src="//form.jotformpro.com/jsform/1234567890?session=<?php echo $user_email; ?>"></script>

    For your reference: http://codex.wordpress.org/Function_Reference/get_currentuserinfo

    Thank you!