Hello, I got this really annoying error. Basically i have 4 files one is the init.php file that contains the login for database and starts session this file has one include to functions.php where all my functions are. Then i have a index.php file where init.php is included and in this file a form action goes to action.php (also includes init.php). Now what i want to do is have a user at index click confirm on the form, have action.php run and then return user to index.php. Currently using includes 'index.php'; it gives me this error. Ive googled and one option is to use include_once but that doesnt work either. Any ideas?
If you're ever getting a redclaration error: it's almost always right. You've either defined something twice, or are including something twice.