The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.27 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
API method giving - "Form Tools hasn't received a successful test submission yet." - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: API method giving - "Form Tools hasn't received a successful test submission yet." (/showthread.php?tid=2329)



API method giving - "Form Tools hasn't received a successful test submission yet." - newtoft - Dec 27th, 2012

Hi,
I am a newbie and tried following the same steps using the external option and api. The direct/post method works great while adding form,but gives the same message when trying to use api
" Form Tools hasn't received a successful test submission yet."

I am trying to run on localhost using XAMPP.

Code:
<?php
/**********************************/
//Added for FormTools Testing

require_once("../FormTools/formtools/global/api/api.php");
//$fields = ft_api_init_form_page("", "test");
  $fields = ft_api_init_form_page(12, "initialize");
  print_r($fields);
$params = array(
  "submit_button" => "questionadd",
  "next_page" => "Thanks.php",
  "form_data" => $_POST,
  "finalize" => true
    );
ft_api_process_form($params);

?>

    

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>Add Question: Add New Question</title>
  <link rel="stylesheet" type="text/css" href="css/search_question.css" media="screen" />
  <SCRIPT language=JavaScript>

  function performSearch()
  {
      var form1 = document.getElementById('search');
      var searchkeyword=form1.elements["searchkeywordfield"].value;
      //document.write("searchkeyword=" + searchkeyword);
    location='../PerformSearch/PerformSearch.php?searchkeyword=' + searchkeyword ;

      //location='../PerformSearch/PerformSearch.php';
    }
  
  </script>
  
  
  
</head>
<body>
  <div id="questionInputDiv">

       <form id="search" name="search" action="Thanks.php" method="post">
      <!-- <form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST"> -->
  
    
<!-- <form action="http://localhost/FormTools/formtools/process.php" method="post">

<input type="hidden" name="form_tools_form_id" value="4" />-->

    
      
    <span id="searchkeyword" class="size3">
      <b>Search:</b> &nbsp;<input type="text" name="searchkeywordfield" value="" size="40" /> &nbsp;
      &nbsp;
      <input id="searchkeywordbutton" type="button" value="Search" onclick="performSearch();"/>
    </span>
    
    <span id="questioncontent">
    
    <font style="color: red">
    <br><br>

    </font>
    
    <br><br>
  
    
    <br>
    <b>Please Enter Question:</b>
    <textarea name="questioncontentbox" id="questioncontentbox" rows="3" cols="70" style="overflow:auto" ></textarea>
    <br><br>
    <input name=questionadd id="questionadd" type="submit" value="Add Question" />
    </span>
  
        </form>
    </div>
  
  
  <div id="displaySearchResultsDiv">
  <span id="displayquestions">
    </span>
  </div>
  
  
  </body>
</html>

Below is my Thanks.php i.e my thank you page.
Code:
<?php
require_once("../FormTools/formtools/global/api/api.php");
$fields = ft_api_init_form_page();
print_r($fields);
ft_api_clear_form_sessions();

echo Thanks;
?>

I have tried and followed every step possible as given in documentation multiple times, going no where. I am surprised its working when I used
post/direct .

Any suggestions would be of great help to me.

Thanks in advance.



RE: API method giving - "Form Tools hasn't received a successful test submission yet." - newtoft - Jan 16th, 2013

Hi Ben,

It would be a great help to me if the above problem could be solved.I also tried many times again.
Now my form page takes me to thank you page. And when I try to use refresh page button in form tools it says Test Submission not successful yet.

I am not knowing what to do as I followed the formtools tutorial step by step many times.

Thanks