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
|
RE: API - Blank form browser display after API integration - Joe - Jun 7th, 2013 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 RE: API - Blank form browser display after API integration - im4u_fforum - Jun 21st, 2013 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 RE: API - Blank form browser display after API integration - Waffleman - Nov 19th, 2013 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 RE: API - Blank form browser display after API integration - Waffleman - Nov 19th, 2013 I figured it out. The path to the server was incorrect and also the HTML-tags were missing.(= Stupid ) |