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
#1
Hi,

I have been trying to set up my form using the code process detailed on the how to do link on Form Tools add form page. After inputting the steps in the guide ..adding a single page form with the API, when I try to open the form on the browser it shows a blank page. this also happens with the Thank you page. And then I get error on test submission.

Could anyone help me know where I am going wrong. As far as i can understand, I have got the right path to the api file as the browser does not return any error.

many thanks
Reply
#2
What's the URL to your form? Please post the code your PHP code. Thanks.

Cheers,

Joe
Reply
#3
Hello Joe,

thanks for getting back.

the url is: http://www.imanage4you.com/contactmetrial.php

and the php code:

<?php
require_once("http://imanage4you.com/f_tools/global/api/api.php");
$fields = ft_api_init_form_page(8, "initialize");
$params = array(
"submit_button" => "submit",
"next_page" => "thankyoutrial.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>


<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">


I hope I have given the correct info. Let me know if I am wrong in my submission to you

regards
Alok
Reply
#4
HI Alok,

The path to the API needs to be an absolute or relative path to on your server not the URL.

require_once("http://imanage4you.com/f_tools/global/api/api.php"); should be something like

require_once("/server/www/f_tools/global/api/api.php"); Please note "/server/www/" is just an example.

Cheers,

Joe


Reply
#5
Hello Joe,

Thanks for the guidance. I have been able to do it today. Now it shows on the bropwser.

Many thansk for your great help and have a good weekend.

Best wishes
alok
Reply
#6
(May 11th, 2013, 12:41 AM)im4u_fforum Wrote: Hello Joe,

Thanks for the guidance. I have been able to do it today. Now it shows on the browser.

Many thanks for your great help and have a good weekend.

Best wishes
alok

Hi Joe

Here I am again.

First of all thank you once again for your help. I have been able to integrate the api form and have added the validation process too and tested it in many ways. It is working well.

A bit excited about it now...and want to do something more....is there a way I can change the colour of the error meassage that pop up if the fields are incorrectly filled? I have seen in some forms that they come up as red.

Another thing..I have noticed when i input all the information in the fields with a wrong infomation into one of them like wrong email...and press submit..the name and the wrong email are still displayed in the fields but the entered text (comments) disappears. Is it programmed this way?

Manay thanks and best wishes
alok
Reply
#7
Hi Alok,

The font color can be changed by overriding the style for the class="error".

Hope this helps.

Cheers,

Joe
Reply
#8
(May 14th, 2013, 3:20 PM)Joe Wrote: Hi Alok,

The font color can be changed by overriding the style for the class="error".

Hope this helps.

Cheers,

Joe

Thank you Joe,

I could do it today. Thank you very much!

regards
Alok
Reply
#9
No problem!

Cheers,

Joe
Reply
#10
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


Forum Jump:


Users browsing this thread: 1 Guest(s)