Apr 9th, 2009, 12:58 AM
I have just started using the API in the tutorials, because my client will need a multi-page form where users can edit info any way they like and even have a secure login.
I have created a very simple php page with a form that has one text field and a submit button with the name submit.
Upon going to the page - I get error messages:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/r/c/l/rclark3345/html/parental_info.php:1) in /home/content/r/c/l/rclark3345/html/formtools/global/api/api.php on line 382
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/r/c/l/rclark3345/html/parental_info.php:1) in /home/content/r/c/l/rclark3345/html/formtools/global/api/api.php on line 382
Warning: Cannot modify header information - headers already sent by (output started at /home/content/r/c/l/rclark3345/html/parental_info.php:1) in /home/content/r/c/l/rclark3345/html/formtools/global/api/api.php on line 383
Warning: Cannot modify header information - headers already sent by (output started at /home/content/r/c/l/rclark3345/html/parental_info.php:1) in /home/content/r/c/l/rclark3345/html/formtools/global/api/api.php on line 384
Here is my PHP file (very small for testing):
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit",
"next_page" => "thank_you.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<label>Middle Name?</label>
<input name="PMidName" type="text" size="45" id="PMidName" />
<input type="submit" name="submit" value="Submit" />
<br />
</p>
</form>
I have been at this for hours, trying everything I can, but nothing seems to change the error or make it go away. Can someone please assist?
I have created a very simple php page with a form that has one text field and a submit button with the name submit.
Upon going to the page - I get error messages:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/r/c/l/rclark3345/html/parental_info.php:1) in /home/content/r/c/l/rclark3345/html/formtools/global/api/api.php on line 382
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/r/c/l/rclark3345/html/parental_info.php:1) in /home/content/r/c/l/rclark3345/html/formtools/global/api/api.php on line 382
Warning: Cannot modify header information - headers already sent by (output started at /home/content/r/c/l/rclark3345/html/parental_info.php:1) in /home/content/r/c/l/rclark3345/html/formtools/global/api/api.php on line 383
Warning: Cannot modify header information - headers already sent by (output started at /home/content/r/c/l/rclark3345/html/parental_info.php:1) in /home/content/r/c/l/rclark3345/html/formtools/global/api/api.php on line 384
Here is my PHP file (very small for testing):
<?php
require_once("formtools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
"submit_button" => "submit",
"next_page" => "thank_you.php",
"form_data" => $_POST,
"file_data" => $_FILES,
"finalize" => true
);
ft_api_process_form($params);
?>
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
<label>Middle Name?</label>
<input name="PMidName" type="text" size="45" id="PMidName" />
<input type="submit" name="submit" value="Submit" />
<br />
</p>
</form>
I have been at this for hours, trying everything I can, but nothing seems to change the error or make it go away. Can someone please assist?