Any php experts?

Discussion in 'Off Topic Discussion' started by Paulo, Nov 16, 2009.

  1. Paulo

    Paulo PoeticHalo

    Joined:
    Mar 13, 2004
    Messages:
    5,354
    Likes Received:
    7
    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?
     
    Last edited: Nov 16, 2009
  2. Paulo

    Paulo PoeticHalo

    Joined:
    Mar 13, 2004
    Messages:
    5,354
    Likes Received:
    7
    Actually include_once does work just me being fairly slow!
     
  3. Paulo

    Paulo PoeticHalo

    Joined:
    Mar 13, 2004
    Messages:
    5,354
    Likes Received:
    7
    & ive now discovered header('Location: http://www.example.com/');. Im terrible at this.
     
  4. sephiap

    sephiap Spirited Member

    Joined:
    Jul 17, 2007
    Messages:
    179
    Likes Received:
    1
    Just read your post, if you're having issues drop me a message mate.
     
  5. GaijinPunch

    GaijinPunch Lemon Party Organizer and Promoter

    Joined:
    Mar 13, 2004
    Messages:
    10,999
    Likes Received:
    75
    If you're ever getting a redclaration error: it's almost always right. You've either defined something twice, or are including something twice.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page