Jump to content

Getting Blank White Display In Main Page


sgs

Recommended Posts

First of all in

validate_login.php

on line 12 there is a blank line which should not be there.

$ppwd = $_POST['sgp_pwd'];
?>//line 11//
//line 12//
<?php //line13//
if (!empty($pusr) && !empty($ppwd)) {

should be

$ppwd = $_POST['sgp_pwd'];//removed the blank line and  ?> and <?php
if (!empty($pusr) && !empty($ppwd)) {

because it would output a empty line which wouldn't allow the setcookie function in validate_login.php

  • Like 1
Link to comment
Share on other sites

Ok, I've updated all files in /src directory, now all the files are in the /src directory are included with my project.

Check it here: http://www.sgpaste.tk/src/

and fix my problem...

And my project includes following files:

a.i) login.php (only html form/page1)

a.ii) validate_login.php (for validation)

a.iii) functions.php (functions used in login.php and validate_login.php)

a.iii) login.func.php (function used in login.php)

b.) mpanel.php (members area/page2)

 

first of all user goes to "login.php" and enters his/her login details then, the "validate_login.php" validates/checks if the details are exists in database. If matches then, if the use has checked the 'Automatic Login' (checkbox) then, the "validate_login.php" sets cookies for username, password & autologin and redirects the user to "mpanel.php", or if 'Automatic Login' (checkbox) has not checked then, the "validate_login.php" deletes the cookies, registers session for username & password and redirects the user to "mpanel.php".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...