Aug 20th, 2012, 12:42 PM
(Aug 20th, 2012, 12:24 PM)BlogWalker Wrote: Hello,
I have following errors during adding form:
Code:Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1585
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1586
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1587
After clicking submit button additional error showed
Code:Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 881
I have tested it on complex and simple form:
example01.php
PHP Code:<?php
require_once("formtools/global/api/api.php");
$g_api_debug = true
$fields = ft_api_init_form_page("", "test");
//$fields = ft_api_init_form_page(7, "initialize");
$params = array(
"submit_button" => "sendguess",
"next_page" => "example02.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Vipcontest Guess Form</title>
</head>
<body>
<form name="example01" id="example01" action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<!--p>id
<input type="text" name="id" id="id" />
</p-->
<p>First Name
<input type="text" name="fname" id="fname" />
</p>
<p>Last Name
<input type="text" name="lname" id="lname" />
</p>
<!--p>City
<input type="text" name="city" id="city" />
</p>
<p>Email
<input type="text" name="email" id="email" />
</p>
<p>First Guess
<input type="text" name="guess1" id="guess1" />
</p>
<p>Second Guess
<input type="text" name="guess2" id="guess2" />
</p>
<p>Third Guess
<input type="text" name="guess3" id="guess3" />
</p>
<p>Last Guess Time
<input type="text" name="modified" id="modified" />
</p>
<p>I.P. Adress
<input type="text" name="ip" id="ip" />
</p>
<p>Password
<input type="text" name="password" id="password" />
</p-->
<p> </p>
<p>Submit
<input type="submit" name="sendguess" id="sendguess" value="submit" />
</p>
</form>
</body>
</html>
and
example02.php
PHP Code:<?php require_once('formtools/global/api/api.php');
$fields = ft_api_init_form_page(7);
ft_api_clear_form_sessions();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>VipContest Thanks</title>
</head>
<body>
Hey, thanks!
</body>
</html>
Anyone can help?
I cann not add form...
What's on lines 1585, 1586 and 1587 of the api.php file?