The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
API - Blank form browser display after API integration - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: API - Blank form browser display after API integration (/showthread.php?tid=2442) Pages:
1
2
|
API - Blank form browser display after API integration - im4u_fforum - May 10th, 2013 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 RE: API - Blank form browser display after API integration - Joe - May 10th, 2013 What's the URL to your form? Please post the code your PHP code. Thanks. Cheers, Joe RE: API - Blank form browser display after API integration - im4u_fforum - May 10th, 2013 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 RE: API - Blank form browser display after API integration - Joe - May 10th, 2013 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 RE: API - Blank form browser display after API integration - im4u_fforum - May 11th, 2013 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 RE: API - Blank form browser display after API integration - im4u_fforum - May 11th, 2013 (May 11th, 2013, 12:41 AM)im4u_fforum Wrote: Hello Joe, 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 RE: API - Blank form browser display after API integration - Joe - May 14th, 2013 Hi Alok, The font color can be changed by overriding the style for the class="error". Hope this helps. Cheers, Joe RE: API - Blank form browser display after API integration - im4u_fforum - May 15th, 2013 (May 14th, 2013, 3:20 PM)Joe Wrote: Hi Alok, Thank you Joe, I could do it today. Thank you very much! regards Alok RE: API - Blank form browser display after API integration - Joe - May 16th, 2013 No problem! Cheers, Joe RE: API - Blank form browser display after API integration - zobok@hotmail.co.uk - Jun 7th, 2013 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 |