What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Library PHP problem with loginUser()

    Asked by rento_sam on June 02, 2017 at 03:04 AM

    This my code for login in jotForm with library PHP.

    What is my problem?

    1 This code is login my user, get responce (var_dump($this->user)) i see info, but refresh and all info for my user is hide, next refresh, refresh no my info is hide?

    2 I Call ($jotformAPI->getForms()), result is array with text euOnly.

      public function __construct() {

            $creadentials = array(

                "username" => "ff645fdgzvdd.hristoddfv@gmail.com",

                "password" => "1234567890523245678qa",

                "appName" => "Application Name",

                "access" => "Access Type",

            );

     

            $this->Login($creadentials);

            parent::__construct();

        }

     

        function Login($creadentials) {

     

            $jotformAPI = new JotForm();

            $response = $jotformAPI->loginUser($creadentials);

            $this->user = $response;

         //  $jotformAPI->logoutUser();

        }

     

        public function Test($ar) {

            

            var_dump($this->user);

               $jotformAPI = new JotForm($this->user['appKey']);

        $forms = $jotformAPI->getForms();

     

        foreach ($forms as $form) {

            print $form["title"];

        }

  • Profile Image
    JotForm Support

    Answered by ashwin_d on June 02, 2017 at 03:39 AM

    Hello,

    I am not sure if I have understood your question correctly. I would suggest you to please send an email at api@jotform.com and someone form our API team will get back to you soon.

    Thank you!