I've got a page with a javascript form. The form's ACTION is to reload the same page and I'm checking whether the submit button is set to control program flow.
At the top of the page I've got 3 include statements...
In quiz_funcs.php I've got the following function...
When the page reloads after clicking the submit button in the form, I get the following...
Fatal error: Cannot redeclare redirect() (previously declared in W:\www\beaverland_2007_v01\quiz\includes\quiz_funcs.php:3) in W:\www\beaverland_2007_v01\quiz\includes\quiz_funcs.php on line 3
I've used this technique in lots of places and I can't understand what's going wrong in this instance. Anyone got any ideas?
At the top of the page I've got 3 include statements...
| Code: |
|
include "../includes/mysql_connect.php"; include "../classes/safesql_class.php"; include "includes/quiz_funcs.php"; |
In quiz_funcs.php I've got the following function...
| Code: |
|
function redirect($next_page, $delay) { echo '<meta http-equiv="Refresh" content="'.$delay.';url='.$next_page.'">'; } |
When the page reloads after clicking the submit button in the form, I get the following...
Fatal error: Cannot redeclare redirect() (previously declared in W:\www\beaverland_2007_v01\quiz\includes\quiz_funcs.php:3) in W:\www\beaverland_2007_v01\quiz\includes\quiz_funcs.php on line 3
I've used this technique in lots of places and I can't understand what's going wrong in this instance. Anyone got any ideas?
