Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 291
0 Users 8 Guests Online
Forum Index » PHP + MySQL » Integrating Login.php.
Posted on Tuesday 7th August 2007 at 02:19 AM
-=InSaNe=-
templates/default/images/noavatar.png's Avatar
Junior Member
Im currently using the following code in an attempt to place login.php into my page:

("login.php");

Now when I place this code onto my website, it just comes up as text. I am working on an HTML layout, but my last website was also HTML and it worked, problem is that one got errased, so I dont remember how I did it.

If someone could tell me how, or like what other codes to add or what not, that would help!
Posted on Tuesday 7th August 2007 at 08:26 AM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
it should be.

include "login.php";

And dont forget that session_start(); must go before all html coding.
Posted on Tuesday 7th August 2007 at 08:38 PM
ilyas-shezad
templates/default/images/noavatar.png's Avatar
Junior Member
O yh and also something to add onto skillmasters php code,
make sure that login.php is in the directory and not in other folders else if login.php is connected to a script then it wont exactly function properly
Posted on Tuesday 7th August 2007 at 09:20 PM
-=InSaNe=-
templates/default/images/noavatar.png's Avatar
Junior Member
Problem is it streches the layout ALOT.

The URL is: (Real website is not up yet as I just registered it)

http://38.114.204.43/~wehabbon/index.php

Any suggestions?
Posted on Thursday 9th August 2007 at 02:25 PM
ilyas-shezad
templates/default/images/noavatar.png's Avatar
Junior Member
hmmm, firstly if it doesnt cause too much problems. Gt rid of the session_start in the index and leave it inside the login script (or other way around) becuz when u include a script the page will then hav 2 sessions started.

For the other problem ull hav to send me the code cuz i cant figure it out
Posted on Thursday 9th August 2007 at 03:21 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
You don't have to have session_start on EACH page. I don't have it on a lot of my member system pages and it works fine.

And, both the includes will work. :S
Posted on Friday 10th August 2007 at 05:20 AM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
just put session_start(); in config and nowhere else it works fine
Posted on Sunday 12th August 2007 at 05:12 PM
-=InSaNe=-
templates/default/images/noavatar.png's Avatar
Junior Member
When I remove from login.php I get an error aswell. The following cpde is index.php so you can tell me whats wrong:


<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;>charset=iso-8859-1" />
<title>WeHabbo.NET // Do You? // v1.0</title>
<meta name="description" content="WeHabbo.NET - A great International Habbo Fansite with tons of great content like news, reviews, guides and so much more! We also have a creative usersystem, a forum & a radio! WeHabbo, Do You?" />
<meta name="keywords" content="habbo, wehabbo, we habbo, We Habbo, habbo, -=insane=-, =-razor-=, radio, sulake, we, fansite, fun, cool, habbo fansite, habbo fansites, radio, guides, reviews, habbo rares, habbohotel, habbohotels, habbo hotels, habbo rare values, habbo.ca, habbo.com, habbo.co.uk, habbo.com.au," />

</head>
<body background="http://www.wehabbo.net/images/----BBBAAACCCKKKGGGRRROOOUUUNNNDDD----.gif" bgcolor="#333333" style="background-position:top center; background-repeat:repeat-y; background-attachment:fixed;">
<style type="text/css">
a {
font-size: 10px;
color: #000000;
}
a:link {
text-decoration: none;
color: #000000;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
body,td,th,p {
font-family: Verdana;
font-size: 10px;
color: #000000;
}
.12 { color: red; }
.11 { color: navy; }
.10 { color: orange; }
.9 { color: darkorchid; }
.8 { color: darkorchid; }
.7 { color: darkorchid; }
.6 { color: darkorchid; }
.5 { color: green; }
.4 { color: green; }
.3 { color: green; }
.2 { color: green; }
.1 { color: black; }
.0 { color: gray; }
input {
font-family: Tahoma, Arial;
font-size: 8pt;
font-weight: bold;
color: #000000;
background-color: #FFFFFF;
border: 1px solid #000000;
}
select {
background-color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-size: 8pt;
color: #000000;
width: 200;
border: 1px solid #000000;
}
textarea {
background-color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-size: 8pt;
color: #000000;
width: 200;
border: 1px solid #000000;
}
.inventory{
font-family: Arial, Helvetica, sans-serif;
font-size: 8pt;
color: #FFFFFF;
}
</style>

<table width="100" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td><table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="90" colspan="3"><a href="index.php"><img src="http://38.114.204.43/~wehabbon/images/Banner2.bmp" width="900" height="90" border="0" /></a></td>
</tr>
<tr>
<td height="13" colspan="3" background="http://38.114.204.43/~wehabbon/images/DeviderBar.bmp"></td>
</tr>
<tr>
<td width="680" valign="top" bgcolor="#FFFFFF"><table width="680" height="0" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="180" valign="top" bgcolor="#313131"> <table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<a href="http://www.hogwarts.wehabbo.net">
<img src="http://38.114.204.43/~wehabbon/images/SecondBanner1.bmp " border="0px"></a> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="1" bgcolor="#000000"></td>
</tr>
<tr>
<td height="24" background="http://38.114.204.43/~wehabbon/images/NavBar.bmp"> <table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<!-- Begin menu -->
<div id="jaframeid" style="position:absolute;top:1px;left:1px;height:0px;width:0px;overflow:hidden">

<a href="http://www.joomlart.com"><h1>Transmenu powered by JoomlArt.com - Mambo Joomla Professional Templates Club</h1> </a>

</div>
<link rel="stylesheet" type="text/css" href="http://38.114.204.43/~wehabbon/ja_transmenu/ja_transmenu/transmenuh.css">
<script language="javascript" src="http://38.114.204.43/~wehabbon/ja_transmenu/ja_transmenu/transmenu.js"></script>
<div id="wrap"><div id="menu"><table cellpadding=0 cellspacing=0 border=0><tr><td><a href="http://www.habbomeadow.com/content/blogcategory/0/2/" class="mainlevel_active-trans" id="menu2">Home</a></td><td><a href="http://www.habbomeadow.com/#" class="mainlevel-trans" id="menu75">News</a></td><td><a href="http://www.habbomeadow.com/#" class="mainlevel-trans" id="menu76">Guides</a></td><td><a href="http://www.habbomeadow.com/#" class="mainlevel-trans" id="menu77">Community</a></td><td><a href="http://www.habbomeadow.com/#" class="mainlevel-trans" id="menu96">Kokes Productions&copy;</a></td><td><a href="http://www.habbomeadow.com/#" class="mainlevel-trans" id="menu79">Goodies</a></td><td><a href="http://www.habbomeadow.com/#" class="mainlevel-trans" id="menu147">Forum</a></td></tr></table></div></div>
<script language="javascript">
if (TransMenu.isSupported()) {
TransMenu.updateImgPath('http://www.habbomeadow.com/modules/ja_transmenu/');
var ms = new TransMenuSet(TransMenu.direction.down, 0, 0, TransMenu.reference.bottomLeft);
TransMenu.subpad_x = 1;
TransMenu.subpad_y = 0;


document.getElementById("menu2").onmouseover = function() {
ms.hideCurrent();
}
var tmenu75 = ms.addMenu(document.getElementById("menu75"));
tmenu75.addItem("CA News", "http://www.wehabbo.net/canews.php/", 0, 0);
tmenu75.addItem("COM News", "http://www.wehabbo.net/comnews.php/", 0, 0);
tmenu75.addItem("UK News", "http://www.wehabbo.net/uknews.php/", 0, 0);
var tmenu76 = ms.addMenu(document.getElementById("menu76"));
tmenu76.addItem("VIP Area Guide", "http://www.habbomeadow.com/content/view/283/84/", 0, 0);
tmenu76.addItem("The ULTIMATE Boredom Guide", "http://www.habbomeadow.com/content/view/284/85/", 0, 0);
tmenu76.addItem("Flat Stacking Guide", "http://www.habbomeadow.com/content/view/285/86/", 0, 0);
tmenu76.addItem("Habbo Club Guide", "http://www.habbomeadow.com/content/view/239/87/", 0, 0);
tmenu76.addItem("How To Run", "http://www.habbomeadow.com/content/view/240/88/", 0, 0);
tmenu76.addItem("Tips 'n' Tricks", "http://www.habbomeadow.com/content/view/241/89/", 0, 0);
tmenu76.addItem("How To Fly", "http://www.habbomeadow.com/content/view/242/90/", 0, 0);
tmenu76.addItem("Badge Guide", "http://www.habbomeadow.com/content/view/243/91/", 0, 0);
tmenu76.addItem("Habbo Home Guide", "http://www.habbomeadow.com/content/view/244/92/", 0, 0);
tmenu76.addItem("How To Super Poof", "http://www.habbomeadow.com/content/view/245/93/", 0, 0);
tmenu76.addItem("Bar Stacking", "http://www.habbomeadow.com/content/view/208/94/", 0, 0);
tmenu76.addItem("Trax Guide", "http://www.habbomeadow.com/content/view/470/145/", 0, 0);
var tmenu77 = ms.addMenu(document.getElementById("menu77"));
tmenu77.addItem("Articles", "http://www.habbomeadow.com/content/blogcategory/5/95/", 0, 0);
tmenu77.addItem("Contact Us", "http://www.habbomeadow.com/component/option,com_contact/task,view/contact_id,1/Itemid,136/", 0, 0);
tmenu77.addItem("Disarno's Visit", "http://www.habbomeadow.com/content/view/498/146/", 0, 0);
tmenu77.addItem("Fansite Links", "http://www.habbomeadow.com/#", 0, 0);
var tmenu103 = tmenu77.addMenu(tmenu77.items[3]);
tmenu103.addItem("Official UK Fansites", "http://www.habbomeadow.com/content/view/246/104/", 0, 0);
tmenu103.addItem("Other Fansites", "http://www.habbomeadow.com/content/view/288/105/", 0, 0);
tmenu77.addItem("Fansite Reviews", "http://www.habbomeadow.com/content/blogcategory/10/101/", 0, 0);
tmenu77.addItem("FAQs", "http://www.habbomeadow.com/content/view/249/106/", 0, 0);
tmenu77.addItem("Help &amp; Safety", "http://www.habbomeadow.com/#", 0, 0);
var tmenu78 = tmenu77.addMenu(tmenu77.items[6]);
tmenu78.addItem("The Habbo Way", "http://www.habbomeadow.com/content/view/278/110/", 0, 0);
tmenu78.addItem("Keylogger Guide", "http://www.habbomeadow.com/content/view/279/111/", 0, 0);
tmenu78.addItem("Password Safety", "http://www.habbomeadow.com/content/view/280/112/", 0, 0);
tmenu78.addItem("Staying Safe Online", "http://www.habbomeadow.com/content/view/281/113/", 0, 0);
tmenu78.addItem("Big List Of Scams", "http://www.habbomeadow.com/content/view/282/114/", 0, 0);
tmenu77.addItem("Interviews", "http://www.habbomeadow.com/content/blogcategory/11/99/", 0, 0);
tmenu77.addItem("Meadow Topsites", "http://www.habbomeadowtopsites.com", 0, 0);
tmenu77.addItem("Meadow FM", "http://www.habbomeadow.com/content/view/316/143/", 0, 0);
tmenu77.addItem("Job Openings", "http://www.habbomeadow.com/#", 0, 0);
var tmenu80 = tmenu77.addMenu(tmenu77.items[10]);
tmenu80.addItem("News Reporter Application", "http://www.habbomeadow.com/component/option,com_contact/task,view/contact_id,3/Itemid,137/", 0, 0);
tmenu80.addItem("Interviewer Application", "http://www.habbomeadow.com/component/option,com_contact/task,view/contact_id,4/Itemid,138/", 0, 0);
tmenu80.addItem("Reviewer Application", "http://www.habbomeadow.com/component/option,com_contact/task,view/contact_id,2/Itemid,139/", 0, 0);
tmenu77.addItem("Room Reviews", "http://www.habbomeadow.com/content/blogcategory/9/100/", 0, 0);
tmenu77.addItem("Staff List", "http://www.habbomeadow.com/content/view/257/102/", 0, 0);
var tmenu96 = ms.addMenu(document.getElementById("menu96"));
tmenu96.addItem("What is Kokes Productions&copy;?", "http://www.habbomeadow.com/content/view/296/140/", 0, 0);
tmenu96.addItem("Download The Songs", "http://www.habbomeadow.com/content/view/247/97/", 0, 0);
tmenu96.addItem("FAQs", "http://www.habbomeadow.com/content/view/248/98/", 0, 0);
tmenu96.addItem("Terms &amp; Conditions", "http://www.habbomeadow.com/content/view/297/141/", 0, 0);
var tmenu79 = ms.addMenu(document.getElementById("menu79"));
tmenu79.addItem("Blank Alterations", "http://www.habbomeadow.com/content/view/250/115/", 0, 0);
tmenu79.addItem("Messenger Stuff", "http://www.habbomeadow.com/content/view/252/116/", 0, 0);
tmenu79.addItem("Desktop Wallpapers", "http://www.habbomeadow.com/content/view/253/117/", 0, 0);
tmenu79.addItem("Backgrounds", "http://www.habbomeadow.com/content/view/254/118/", 0, 0);
tmenu79.addItem("Habbo Home Stickers", "http://www.habbomeadow.com/content/view/256/119/", 0, 0);
tmenu79.addItem("Habbo Font Creator", "http://www.habbomeadow.com/component/option,com_wrapper/Itemid,120/", 0, 0);
tmenu79.addItem("Other Stuff", "http://www.habbomeadow.com/content/view/255/121/", 0, 0);
tmenu79.addItem("Habbo Status Signatures", "http://www.habbomeadow.com/content/view/553/154/", 0, 0);
tmenu79.addItem("Archive Images", "http://www.habbomeadow.com/#", 0, 0);
var tmenu155 = tmenu79.addMenu(tmenu79.items[8]);
tmenu155.addItem("Homepage Banners", "http://www.habbomeadow.com/content/view/624/156/", 0, 0);
tmenu155.addItem("Habbo Characters &amp; Objects", "http://www.habbomeadow.com/content/view/630/157/", 0, 0);
tmenu155.addItem("Habbo 60 x 60 Images", "http://www.habbomeadow.com/content/view/632/158/", 0, 0);
var tmenu147 = ms.addMenu(document.getElementById("menu147"));
tmenu147.addItem("Visit the Forum", "http://www.meadowforum.com", 0, 0);
tmenu147.addItem("Arcade Battle", "http://www.habbomeadow.com/content/view/531/148/", 0, 0);
tmenu147.addItem("Register", "http://www.meadowforum.com/register.php", 0, 0);
tmenu147.addItem("Meadow Club", "http://www.meadowforum.com/index.php?page=Purchase%20Meadow%20Club&Itemid=150", 0, 0);

TransMenu.renderAll();
}
init1=function(){TransMenu.initialize();}
if (window.attachEvent) {
window.attachEvent("onload", init1);
}else{
TransMenu.initialize();
}
</script>
<!-- End menu -->

</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="5" background="http://38.114.204.43/~wehabbon/images/NavShadow.bmp"></td>
</tr>
<tr>
<td height="100%" valign="top" bgcolor="#FFFFFF"><table width="670" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="670" height="100%"><table class="blog-home" cellpadding="0" cellspacing="0"><tr><td valign="top"><table width="100%" cellpadding="0" cellspacing="0"><tr><td valign="top" width="50%">




<span class="article_seperator">&nbsp;</span>

</td></tr></table></td></tr><tr><td valign="top" align="left">

Welcome to WeHabbo.NET! <BR>
<BR>
Content will go here, such as 'About' or I may place the new right on the homepage rather then have a News section, either way this is what the layout will look like. <BR>
<BR>
The website first opened on August 6th, 2007 at 12:00 PM (EST). Since then the website has had lots of great changes!



</td></tr></table> </td>
</tr>
</table></td>
</tr>
</table></td>
<td width="1" height="180" bgcolor="#000000"></td>
<td width="219" valign="top" bgcolor="#000000">



<table width="221" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><img src="http://38.114.204.43/~wehabbon/images/SBarTop.bmp" width="219" height="17" /></td>
</tr>
<tr>
<td valign="top" background="http://38.114.204.43/~wehabbon/images/SBarCenter.bmp" style="background-repeat:repeat-y;"><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="146" height="18" valign="top" class="white"><span class="style2">WeHabbo Usersystem</span></td>
<td width="54" valign="top" class="white"><div align="right">
</div></td>
</tr>
</table></td>
</tr>
<tr>
</tr>
<tr>
<td background="http://38.114.204.43/~wehabbon/images/SBarCenter.bmp" style="background-repeat:repeat-y;"><table width="210" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><span class="white">
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<?php

include "login.php";

?>
<td>
<div class="mod_contentitem"><table>
<tr>
<td colspan="1" style="vertical-align:top;"> <table class="contentpaneopen">
<tr>

</tr>
</table>

<table class="contentpaneopen">
<tr>

</tr>
<tr>

</tr>
</table>

<span class="article_seperator">&nbsp;</span>

</td>
</tr>
<tr>
<td colspan="1" style="vertical-align:top;"> <table class="contentpaneopen">
<tr>

</tr>
</table>

<table class="contentpaneopen">
<tr>

</tr>
<tr>

</tr>
</table>

<span class="article_seperator">&nbsp;</span>

</td>
</tr></table></div> </td>
</tr>
</table>
</span></td>
</tr>
</table></td>
</tr>
<tr>
<td height="17"><img src="http://38.114.204.43/~wehabbon/images/SBarBottom.bmp" width="219" height="17" /></td>
</tr>
<tr>
<td><img src="http://38.114.204.43/~wehabbon/images/SBarTop.bmp" width="219" height="17" /></td>
</tr>
<tr>
<td valign="top" background="http://38.114.204.43/~wehabbon/images/SBarCenter.bmp" style="background-repeat:repeat-y;"><table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="18" valign="top" class="white"><span class="style2">WeHabbo FM</span></td>
</tr>
</table></td>
</tr>
<tr>
</tr>
<tr>
<td background="http://38.114.204.43/~wehabbon/images/SBarCenter.bmp" style="background-repeat:repeat-y;"><table width="210" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="47" rowspan="2"><div align="center"><img src="http://images.habbohotel.com/c_images/album1351/Characters_Bunny.gif" /></div></td>
<td width="163"><div align="center"><span class="white">
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>


<div style="font-size:11px; text-align:center; color: #000000;">Click <B>HERE</B> to check out WeHabbo FM!</div>
<div style="font-size: 10px; padding-left: 37px; color: #f39; letter-spacing: -1px; text-decoration: none"></div>


</td>
</tr>
</table>
</span></div></td>
</tr>

</table></td>
</tr>
<tr>
<td height="17"><img src="http://38.114.204.43/~wehabbon/images/SBarBottom.bmp" width="219" height="17" /></td>

<td height="10"></td>
</tr>
<tr>
<td><table width="17" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><span class="white">
</span></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>

</table>
</tr>
<tr>
<td height="10" colspan="3" bgcolor="#000000"><table width="680" height="10" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="10" height="10"><div align="left"><img src="http://38.114.204.43/~wehabbon/images/BottomBarL.bmp" width="10" height="10" /></div></td>
<td width="660" height="10" bgcolor="#FFFFFF"></td>
<td width="10" height="10"><div align="right"><img src="http://38.114.204.43/~wehabbon/images/BottomBarR.bmp" width="10" height="10" /></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="10" colspan="3" background="http://38.114.204.43/~wehabbon/images/Disclaimer1.bmp"></td>
</tr>
<tr>
<td height="60" colspan="3" valign="top" background="http://38.114.204.43/~wehabbon/images/Disclaimer2.bmp"><table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center" class="disclaimer">Habbo&reg;, Habbo Hotel&reg;, Sulake and associated logos are trademarks of Sulake Group. All rights reserved. Copyright, trademarks and other rights in the material from Habbo Hotel&reg; and other services of Sulake Group on this website are owned by Sulake Group. All rights reserved. This website is neither owned nor operated by Sulake Group and it is not part of Habbo Hotel&reg; or any other service or website owned or operated by Sulake Group. Sulake Group are not responsible for any content on this website and the views and opinions expressed herein are not necessarily the views and opinions of Sulake Group.<br />
<a href="http://www.habbo.ca">Habbo CA</a> | <a href="http://www.habbo.co.uk">Habbo UK</a> | <a href="http://www.habbo.com">Habbo USA</a> | <a href="http://www.habbo.com.au">Habbo AU</a></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="0" colspan="3" align="center" valign="middle" background="http://38.114.204.43/~wehabbon/images/Disclaimer2.bmp"><table width="728" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td>


</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Posted on Sunday 12th August 2007 at 05:55 PM
ilyas-shezad
templates/default/images/noavatar.png's Avatar
Junior Member
There doesnt seem to be any php inside it apart from the include tag. Is there a header error when u try to put in a session_start(); php tag? TIf their is and the error looks something like:
Code

Headers already sent in blablabla


Then youve got to get rid of a php header somewere i think.
Posted on Sunday 12th August 2007 at 07:55 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
Insane, but <?php session_start(); include "login.php"; ?> at the top. :)