FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API - Blank form browser display after API integration
#11
Hi there,

We're going to need a bit more detail to help out. Please post a link to your form or provide some additional code. Thanks.

Cheers,

Joe
Reply
#12
Hi,
Two things to consider:
1 - when does it disappear....after which action?
2. If your page is saving but when submitting your form your browser goes blank then the path is wrong as it is not locating the file (I had the same problem). Try this


...("/home/XYZ/abc/ftools/global/api/api.php")

where XYZ is your ID with which you log on to Cpanel
and abc is the main folder for your pages ("public_html" if this is so)
Note that ftools is the folder name of your form tools in which your api form is located. So write here the name of your form tools folder.

hope this helps
alok

(Jun 7th, 2013, 11:43 AM)zobok@hotmail.co.uk Wrote: Every time i add the

<?php
require_once("http://______________/ftools/global/api/api.php");
?>

to my form all the content disappears not sure where i am going wrong,

someone plllllllease help?http://forums.formtools.org/images/icons/sad.gif

Reply
#13
I'm still not getting it...

I created a php page and a thank you page , also php.
It is located here:http://www.isa-niagara.org/testapiform.php

All I get is a blank page. Actually in Firefox its a blank page but in explorer I get http500 internal server error. Here is the code:
Can anyone help me?

<?php
require_once("home/isaniaga/public_html/formtools/global/api/api.php");
<!-- $fields = ft_api_init_form_page("", "test"); --->

$fields = ft_api_init_form_page(4, "initialize");

$params = array(
"submit_button" => "submit",
"next_page" => "testapiformthanks.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
<Head>
<title>API form test page</title>
</HEAD>

<body>

<p>Hello world, this is my entry form</p>
<!-- <form action="welcome.php" method="post" -->
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<input type="hidden" name="form_tools_form_id" value="4" />
NAME:<input type="text" name="name">
<input type="text" name="company">
<input type="text" name="email">
<input type="checkbox" name="mem" value="Yes">
<input type="checkbox" name="attend" value="Yes">
<input type="number" name="Guest" value="0">
<input type="hidden" name="event" value="techmeet_OSHA" />
<input type="submit">
</form>
</body>


Thanks in advance,
Waffleman
Reply
#14
I figured it out.
The path to the server was incorrect and also the HTML-tags were missing.(= Stupid )

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)