Once the page is validated, it automatically redirects the webpage to a different page.
This works fine with whatever fields I have in the form (text field, select field etc.). However if I add a file field in, the page won't redirect.
For example, this code will result in the page redirecting:
Code: Select all
$region_info=new input_page("region_information",
array(new text_field("Region Name", "region_name", 20, 30),
new select_field("State/Territory", "region_state", $states, "state")),
$region_info_query);Code: Select all
$region_info=new input_page("region_information",
array(new text_field("Region Name", "region_name", 20, 30),
new select_field("State/Territory", "region_state", $states, "state"),
new file_field("Upload Images", "uploaded_files", 6, "S:/web_pages/uploads/")),
$region_info_query);...and this is the code I use to redirect a page:
Code: Select all
//If this is the last page of the result_set
else
{
session_unset( );
header("location:$this->final_page");
}I've tried changing the "location:$this->final_page" to an actual webpage such as "http://forums.devnetwork.net" but that doesn't change anything.
Thanks in advance.
Edited: 6/12/07. Also, when I use the same code as above and I specify in the new form field to redirect the page to a DIFFERENT page (rather than the same current page), this works fine also.