Hi, i have posted previously with a problem with my login system, i have tried a different method now, where i have divided my code into separate pages, storing functions in one place, output processing in one place etc, which are called into pages using "require_once" command, which makes an easier to understand system and allows easier re-use of code.
I am having a few problems with the system at the moment, focusing on the login itself. my login.php page doesn't show anything on screen at all! its just a plain white screen!
The code for the login.php page is as follows:
<?
require_once("houses_fns.php");
do_html_header("login");
display_site_info();
display_login_form();
do_html_footer();
?>
This page calls the "houses_fns.php" page which has further includes, including more files with functions in.
The houses_fns.php page is as follows:
<?
require_once("data_valid_fns.php");
require_once("db_fns.php");
require_once("user_auth_fns.php");
require_once("output_fns.php");
?>
This calls function pages to connect to my database, and has checks on the data when regsitered ie checking passwords, checking the form is filled out etc. The page here that i am concerned with is the "output_fns.php" page, which holds all the forms, and html code for output.
The code for output_fns.php i have included in a .txt attachment with this post, as the code was too long to include in the main message section!! so please take a look at the txt attachment file!!
What i have tried to do in this page is have functiosn which are called from the login page, to output the necessary html to display on screen.
The function "do_html_header($title)" allws the title of the page to be generated by the variable passed as title, which is called when the function is called on the login page, then uses an include to include my html top image and menu etc. Then calls the function "do_html_heading" to out a heading on the page and then puts the login form in the body using the function "display_login_form()" and then outputs my bottom content bar in the function "do_html_footer()" which uses and include page too, like the top menu.
In the head of the page i have included reference to a style sheet "Style1.css" so i have used div tags and stuff on the form etc, i think this should still work?
When i call my login.php page, it just comes up with a blank white screen, when im pretty sure it should appear with my top header, login form etc. i have even tried submitting regular echo commands and html headings using normal styling, but still nothing appears.
Can someone please take a look over the code for me, and maybe identify what i'm missing or where i'm going wrong, because i'm fairly new to php and can't figure it out, i have been through all my code and cant identify a problem anywhere!!
PLEASE HELP ME!! im so stuck, really need help
thanks guys
Craig (barbs75)