Instead of printing "Success" I want to redirect to another page I tried a header but I got and error. Any ideas?
if ( isset ( $first_name ) && isset ($last_name) && isset ( $email )
&& isset ( $address ) && isset ( $city ) && isset ( $state ) && isset ( $zip )
&& isset ( $phone ) && isset ( $type_wanted ) && isset ( $other_animals )
&& isset ( $kids ) && isset ( $yard ) && isset ( $sleep )
&& isset ( $comments ) ) {
//check input here
$dberror= "";
$ret = add_to_database ($first_name, $last_name, $email, $address,
$city, $state, $zip, $phone, $type_wanted, $other_animals, $kids, $yard, $sleep,
$comments, $dberror );
if ( ! $ret )
print "Error $dberror<BR>";
else
print "Success";
//include("index.htm")
}
else {