Page 1 of 1

Inserting a PHP document inside an if else statement

Posted: Sun Apr 28, 2013 9:24 am
by h4xx0r
I'm working on a login/registration system and I have so far set it up all good.

I am using an if else statement, that on being true, executes this:
echo "Success, you have logged in".

Now I have a 1 page PHP script that I want to put in instead of this message and execute it in a container or something. So when someone logs in, he is able to access the script.

Help me here please.
Thanks.

Re: Inserting a PHP document inside an if else statement

Posted: Sun Apr 28, 2013 9:19 pm
by Christopher
Use include()/require(). See the manual.