Feb 19th, 2011, 3:54 PM
(This post was last modified: Feb 19th, 2011, 4:41 PM by stargatesam.)
All my fields are showing up in Step 4, except my uploads.
In my first page:
On the page with the uploads:
and
I put this code in the header on all the other pages, too, is that the right thing to do? Is it necessary to carry it over?
This is my second attempt with this form. The strange thing is that it worked the first time. So I don't know what I changed to make it stop working. I'm uploading the same pictures during the Test Submission step as I did before when it worked.
In my first page:
Code:
<?php
require_once("forms/global/api/api.php");
$fields = ft_api_init_form_page(4, "initialize");
$params = array(
"submit_button" => "submit",
"next_page" => "employment2.php",
"form_data" => $_POST,
"file_data" => $_FILES
);
ft_api_process_form($params);
?>
On the page with the uploads:
Code:
<form action="<?php echo $_SERVER["PHP_SELF"]?>" method="post" enctype="multipart/form-data">
and
Code:
<label for="PictureOne">Picture 1:</label>
<input type="file" name="PictureOne" id="PictureOne" />
<label for="PictureTwo">Picture 2:</label>
<input type="file" name="PictureTwo" id="PictureTwo" />
<label for="PictureThree">Picture 3:</label>
<input type="file" name="PictureThree" id="PictureThree" />
I put this code in the header on all the other pages, too, is that the right thing to do? Is it necessary to carry it over?
Code:
"file_data" => $_FILES
This is my second attempt with this form. The strange thing is that it worked the first time. So I don't know what I changed to make it stop working. I'm uploading the same pictures during the Test Submission step as I did before when it worked.