home contents not showing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jazzi
Forum Newbie
Posts: 9
Joined: Mon Apr 25, 2011 6:56 am

home contents not showing

Post by jazzi »

hello sir,

with due respect it is stated that i m having trouble in my final year project which is being built in php and mysql and the problem is that when i login by entering username and password it accepts the the username and password and goes to the home page but the problem is it is not showing the related contents of the home page.
plzzzz send me the code that how to solve this problem and also the javasript code to authenticate username and password at page level.
i shall be thankful for u

regards
ejaz karim
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: home contents not showing

Post by superdezign »

We don't do homework assignments. Hell, we don't even do non-homework assignments. Show us your problem code and tell us what's happening versus what you expect to happen and what steps you've taken to debug it.
jazzi
Forum Newbie
Posts: 9
Joined: Mon Apr 25, 2011 6:56 am

Re: home contents not showing

Post by jazzi »

thanks for reply
well my project is 170mb how can i upload it
its the whole project tell me how to do that
jazzi
Forum Newbie
Posts: 9
Joined: Mon Apr 25, 2011 6:56 am

Re: home contents not showing

Post by jazzi »

i think i cant upload all the code coz its 170mb
but i will let u know again that when i login through my page it is redirected to home page but the contents are not been shown thats the problem
for example take example of hotmail..from the signin page when we sign in it directs us to home page where inbox,messeges outbox are shown...
same as when i sign in through my web page it directs me to home page but the contents like inbox messeges and outbox like stuff are not shown...why it is happening??
only logo is bein shown
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: home contents not showing

Post by Gopesh »

Hi, u just explain the part of ur project where u feels dificult.try to show with developed codes,it can be useful to understand ur pblms..
jazzi
Forum Newbie
Posts: 9
Joined: Mon Apr 25, 2011 6:56 am

Re: home contents not showing

Post by jazzi »

in login page
jazzi
Forum Newbie
Posts: 9
Joined: Mon Apr 25, 2011 6:56 am

Re: home contents not showing

Post by jazzi »

<?
include_once("bin/group.events.func.php");
include_once("events.php");
include_once("include/database.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script language="javascript" type="text/javascript">
function Validate(frm)
{

if(frm.tutorIdTxt.value=="")
{
frm.tutorIdTxt.style.border="1px solid #CC0000";
frm.tutorIdTxt.style.background="#FFE6E5";
frm.tutorIdTxt.focus();
return false;
}
else
{
frm.tutorIdTxt.style.border="1px solid #CCCCCC";
frm.tutorIdTxt.style.background="#FFFFFF";
}
if(frm.pswdTxt.value=="")
{
frm.pswdTxt.style.border="1px solid #CC0000";
frm.pswdTxt.style.background="#FFE6E5";
frm.pswdTxt.focus();
return false;
}
else
{
frm.pswdTxt.style.border="1px solid #CCCCCC";
frm.pswdTxt.style.background="#FFFFFF";
}
}
</script>
<head>
<title>STO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<div align="center">
<table width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="images/STO_mBlock_01.jpg" width="1000" height="130" alt=""></td>
</tr>
<tr align="center">
<? require("top_menu.php"); ?>
</tr>
<tr>
<td height="537px" valign="top" style="padding-top:20px">
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="390px" rowspan="2"><? require("announcements.php"); ?></td>
<td width="610px">
<div id="tutorsAreaTitle"> </div>
<div id="grayBGTray">
<div id="grayMainBlock" align="center">
<?
if((isset($_GET["err"])) && ($_GET["err"]=="login_failed"))
echo("<div class='red_12' align='center' style='margin-top:10px'><b>Sorry! Unable to Login. Make sure you entered login ID and Password correctly.</b></div>");
?>
<form id="tutorLoginForm" method="post" action="do_tutorlogin.php" style="margin:0px" onsubmit="return Validate(this)">
<table width="338" border="0" cellpadding="0" cellspacing="5">
<tr align="left">
<td class="gray_12">Tutor ID:</td>
<td class="gray_12">hannan </td>
</tr>
<tr align="left">
<td class="gray_12">Password:</td>
<td>aaa</td>
</tr>
<tr align="right">
<td></td>
<td><input type="submit" id="submit" class="button_Orange" name="submit" value="Login"/></td>
</tr>
</table>
</form>
</div>
</div>
</td>
</tr>
<tr valign="top">
<td> <? require("events.php"); ?></td>
</tr>
</table>
</td>
</tr>
<? require("footer.html"); ?>

</table>
</div>

</body>
</html>
jazzi
Forum Newbie
Posts: 9
Joined: Mon Apr 25, 2011 6:56 am

Re: home contents not showing

Post by jazzi »

well in this code it shud login and will show the events page
it logins and shows header logo but not shhowing contents of the home page that is events page
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: home contents not showing

Post by superdezign »

Firstly, you've given us too much code. Secondly, use [syntax] tags to format your code. Thirdly, your code doesn't show us what the problem is.

If you honestly have 170MB of code, your error could be anywhere. If you are getting no output at all and it's not the result of an if-statement being skipped, you likely have errors in your code but you don't have display_errors and error_reporting on.
jazzi
Forum Newbie
Posts: 9
Joined: Mon Apr 25, 2011 6:56 am

Re: home contents not showing

Post by jazzi »

well sory it is 5.6 mb of my project
can i upload 5.6 mb here so that u can see wt the problem is?
plzzzzz this is my final semester project and i need it urgently to be correct
else i will lost my degree
so plzzzzzzzz do somthing for me
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: home contents not showing

Post by Gopesh »

hi,where u enter ur username and password(there is no input fields)!!!!
jazzi
Forum Newbie
Posts: 9
Joined: Mon Apr 25, 2011 6:56 am

Re: home contents not showing

Post by jazzi »

well its not all the code but it logins but not showing the events page?
can i send u all the project so that u can see all of it and see wats the problem
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: home contents not showing

Post by superdezign »

If you are willing to pay, I'm willing to help. Otherwise, you'll need to be more specific about your problems if you want our assistance. We aren't mind readers and there's no magic thing that can be done to fix code.
Post Reply