im trying to open or load a page if a function returns either true or false like
if ($this == 4){ load this page script here; } else { continue; }
And what is your problem?
i dont know the code to make a page load
nevermind i discovered the header() function
Perhaps the include() function would be appropriate. for example:
if ($this == 4){ include ("page_to_include.php"); } else { echo "Nothing Loaded..."; }
You might also want to have a look at exec() and passthru().
Hi,
if ($this == 4){ Header(Location: your page here); } else { Header(Location: other page here); }
Hope this helps
thanks, i couldnt use the header() function because i am combining this with cookies, so i already sent the header, but the include function worked great, thanks everyone