Any php experts?

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?
Actually include_once does work just me being fairly slow!
& ive now discovered header('Location: http://www.example.com/');. Im terrible at this.
Just read your post, if you're having issues drop me a message mate.
If you're ever getting a redclaration error: it's almost always right. You've either defined something twice, or are including something twice.

Original thread: https://assemblergames.com/threads/any-php-experts.25034/