Ok,
Here is my error.
Fatal error: Using $this when not in object context

Here is the code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<!-- <hs:metatags> -->
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<meta name="description" content="Free online dating and matchmaking for singles">
		<meta name="keywords" content="dating service,on-line dating service,mate,partner,women,man,love,free on-line dating,sex,long-term relationship,friends with benefits,hook-up, lonely">
		<meta name="generator" content="Intuit SiteBuilder by Homestead">
		<meta http-equiv="imagetoolbar" content="no">
		<meta http-equiv="imagetoolbar" content="false">
		<!-- </hs:metatags> -->
		
		<!-- <hs:title> -->
		<title></title>
		<!-- </hs:title> -->
		<script type="text/javascript">
			<!--
						function reDo() {
						        top.location.reload();
						}
						if (navigator.appName == 'Netscape' && parseInt(navigator.appVersion) < 5) {
						        top.onresize = reDo;
						}
						dom=document.getElementById
					//-->
		</script>
		<script type="text/javascript">
			<!--
							  
						
  var strRelativePagePath = "INDEX.html".toLowerCase();
  
						
  var strRelativePathToRoot = "";
  

  var myimages=new Array();
					function preloadImages(imageList)
					{
						if (document.images) 
						{ 
							for (i=0;i<imageList.length;i++)
							{
								myimages[i]=new Image();
								myimages[i].src=imageList[i];
							}
						}
					}
  function genericAlert() { 
										alert("Sorry. To use this feature, you need Internet Explorer."); 
										return true; 
									} 

									function addToFavorites(url, title) { 
										window.onerror = genericAlert; 
										if (navigator.appName == "Microsoft Internet Explorer") {  
											if (parseInt(navigator.appVersion) >= 4) { 
												window.external.AddFavorite(url, title); 
											} else { 
												friendlyAlert(); 
											}
										} else if (navigator.appName == "Netscape") { 
											friendlyAlert(); 
										} else { 
											genericAlert(); 
										} 
									}

									function friendlyAlert() { 
										var win = window.open("/~media/Elements/AddToFavorites/AddToFavorites.html", "HSFriendlyAlert", "width=265,height=100"); 
									}


						//-->
		</script>
		<link type="text/css" href="http://www.homestead.com/~media/elements/Text/font_styles_ns4.css" rel="stylesheet">
		<style type="text/css">
			@import url(http://www.homestead.com/~media/elements/Text/font_styles.css);
			div.lpxcenterpageouter { text-align: center; position: absolute; top: 0px; left: 0px; width: 100% }
			div.lpxcenterpageinner { position: relative; margin: 0 auto; text-align: left; width: 926px; }
		</style>
		<script type="text/javascript">
			<!--
							var unique_id = new Array();
			var form_name = new Array();
			var required = new Array();
			var req_message = new Array();

						//-->
		</script>
		
		<STYLE type="text/css">
			<!--
							.navBackgroundNavigationyss { background-image:url('/~media/elements/LayoutClipart/../LayoutClipart/NavTabs/Basic_Tab_White_Unselected.gif'); background-position: center; background-repeat:no-repeat }
							.navBackgroundSelectedNavigationyss { background-image:url('/~media/elements/LayoutClipart/../LayoutClipart/NavTabs/Basic_Tab_White_Selected.gif'); background-position: center; background-repeat:no-repeat }
							
							
						-->
						
						
						
						
		</STYLE>
		
		<link rel="stylesheet" type="text/css" href="log.css" />
		<!--
			Photo Gallery Element based on Lightbox v2.03.3 © 2006-2007 Lokesh Dhakar.
			
			For more information on Lightbox, visit:
			http://huddletogether.com/projects/lightbox2/
			
			Lightbox scripts licensed under the Creative Commons Attribution 2.5 License:
			http://creativecommons.org/licenses/by/2.5/
		-->
		<script type="text/javascript" src="http://www.homestead.com/~media/elements/PhotoGallery/js/prototype.js" language="JavaScript">
		</script>
		<script type="text/javascript" src="http://www.homestead.com/~media/elements/PhotoGallery/js/scriptaculous.js?load=effects" language="JavaScript">
		</script>
		<script type="text/javascript" src="http://www.homestead.com/~media/elements/PhotoGallery/js/lightbox.js" language="JavaScript">
		</script>
		<link href="http://www.homestead.com/~media/elements/PhotoGallery/css/lightbox.css" type="text/css" media="screen" rel="stylesheet">
		<STYLE type="text/css">
			<!--
							.navBackgroundNavigationbottom { background-image:url('/~media/elements/LayoutClipart/../LayoutClipart/NavTabs/Basic_Tab_White_Unselected.gif'); background-position: center; background-repeat:no-repeat }
							.navBackgroundSelectedNavigationbottom { background-image:url('/~media/elements/LayoutClipart/../LayoutClipart/NavTabs/Basic_Tab_White_Selected.gif'); background-position: center; background-repeat:no-repeat }
						-->
		</STYLE>
		<script type="text/javascript" src="/~site/Elements/HCUser_Forms_Submit/FormValidation.js">
		</script>
	</head>
	<body onunload="" alink="#406AB0" onload="preloadImages(new Array('files/surrealcoastalsunsetcrop.jpg')); " id="element1" link="#406AB0" bgcolor="#FFFFFF" scroll="auto" vlink="#406AB0">
		<noscript>
			<img alt="" src="http://www.homestead.com/~media/elements/shared/javascript_disabled.gif" height="40" border="0" width="373">
		</noscript>
		<div class="lpxcenterpageouter"><div class="lpxcenterpageinner"><!-- <hs:element224> --><div style="position: absolute; top: 480px; left: 10px; width: 275px; height: 183px; z-index: 0;" id="element224"><img alt="" src="files/heartandkey.jpg" height="183" width="275"></div><!-- </hs:element224> --><!-- <hs:element225> --><div style="position: absolute; top: 11px; left: 9px; width: 888px; height: 180px; z-index: 1;" id="element225"><table cellpadding="0" cellspacing="0" border="0"><tr><td bgcolor="#7FF0AD" height="180" width="888"><img alt="" src="http://www.homestead.com/~site/Scripts_Shapes/shapes.dll?CMD=GetRectangleGif&r=127&g=240&b=173" height="180" width="888"></td></tr></table></div><!-- </hs:element225> --><!-- <hs:element226> --><div style="position: absolute; top: 16px; left: 14px; width: 912px; height: 197px; z-index: 2;" id="element226"><img alt="" src="files/Your_Special_Someone_2.jpg" height="197" width="912"></div><!-- </hs:element226> --><!-- <hs:element227> --><div style="position: absolute; top: 185px; left: 16px; width: 143px; height: 32px; z-index: 3;" id="element227"><div align="left"><font face="'Times New Roman', Times, serif" class="size22 TimesRoman22" color="#FFFFFF"><br></font></div></div><!-- </hs:element227> --><!-- <hs:element228> --><div style="position: absolute; top: 215px; left: 51px; width: 826px; height: 19px; z-index: 4;" id="element228"><div align="left"><SCRIPT SRC="/Navigationyss.js" TYPE="text/javascript"></SCRIPT><noscript><font style="font-weight:bold;" face="Helvetica, Arial, sans-serif" class="size12 Helvetica12"><a target="_self" href="/INDEX.html">HOME</a> | <a target="_self" href="/CREATEPROFILE.html">CREATE PROFILE</a> | <a target="_self" href="/Upload-a-Photo.html">PHOTO UPLOAD</a> | <a target="_self" href="/CHATROOM.html">MEET SOME MEMBERS!</a> | <a target="_self" href="/REQUEST.html">REQUEST BACKGROUND CHECK</a></font></noscript></div></div><!-- </hs:element228> --><!-- <hs:element229> --><div style="position: absolute; top: 237px; left: 16px; width: 900px; height: 100px; z-index: 5;" id="element229"><a href="files/LOVESJEFFHARR.jpg" name="12" title="DSQUARED 41/FEMALE " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="DSQUARED 41/FEMALE" src="publishImages/INDEX~~element229~~12.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="DSQUARED 41/FEMALE" width="100"></a><a href="files/DADSONFSHING.jpg" name="13" title="SINGLEDADLOOKING 47/MALE  " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="SINGLEDADLOOKING 47/MALE " src="publishImages/INDEX~~element229~~13.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="SINGLEDADLOOKING 47/MALE " width="100"></a><a href="files/COURTNEY_84.jpg" name="15" title="COURTNEY_84 23/FEMALE " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="COURTNEY_84 23/FEMALE" src="publishImages/INDEX~~element229~~15.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="COURTNEY_84 23/FEMALE" width="100"></a><a href="files/LOOKINGFORUINTN.jpg" name="16" title="LOOKING4FUNINTN 39/MALE " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="LOOKING4FUNINTN 39/MALE" src="publishImages/INDEX~~element229~~16.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="LOOKING4FUNINTN 39/MALE" width="100"></a><a href="files/LUVS2TRAVL.jpg" name="17" title="LUVS2TRAVL 44/FEMALE " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="LUVS2TRAVL 44/FEMALE" src="publishImages/INDEX~~element229~~17.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="LUVS2TRAVL 44/FEMALE" width="100"></a><a href="files/PARTYCOVEPETE.jpg" name="18" title="PARTYCOVEPETE 41/MALE " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="PARTYCOVEPETE 41/MALE" src="publishImages/INDEX~~element229~~18.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="PARTYCOVEPETE 41/MALE" width="100"></a><a href="files/chika_3.jpg" name="19" title="CHICA_3 26/FEMALE " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="CHICA_3 26/FEMALE" src="publishImages/INDEX~~element229~~19.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="CHICA_3 26/FEMALE" width="100"></a><a href="files/manonkeyboard.jpg" name="20" title="SOUNDGUY4U 26/MALE " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="SOUNDGUY4U 26/MALE" src="publishImages/INDEX~~element229~~20.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="SOUNDGUY4U 26/MALE" width="100"></a><a href="files/DEEDEE.jpg" name="21" title="DRAMAFREEINTN 35/FEMALE " rel="lightbox[element229]" id="font-family:Verdana; color:#000000;"><img title="DRAMAFREEINTN 35/FEMALE" src="publishImages/INDEX~~element229~~21.jpg" style="margin-left: 0px; margin-right: 0px; margin-top:0px; margin-bottom: 0px;" height="100" border="0" alt="DRAMAFREEINTN 35/FEMALE" width="100"></a></div><!-- </hs:element229> --><!-- <hs:element230> --><div style="position: absolute; top: 388px; left: 280px; width: 638px; height: 96px; z-index: 6;" id="element230"><div align="justify"><font face="Helvetica, Arial, sans-serif" class="size11 Helvetica11" color="#000000">With busy careers and even busier lives, online dating has become increasingly popular over the years as a tool for meeting that special someone. The down side to this is that internet dating can be a relatively frightening concept. The unknown aspect of who you are truly meeting for that cup of coffee or dinner date poses a very big concern for most people. </font><font face="Helvetica, Arial, sans-serif" class="size11 Helvetica11" color="#406AB0"><b><i>Your Special Someone</i></b></font><font face="Helvetica, Arial, sans-serif" class="size11 Helvetica11" color="#406AB0"> </font><font face="Helvetica, Arial, sans-serif" class="size11 Helvetica11" color="#000000">has these concerns in mind and has developed a program for you that will take the guess work out of meeting a complete stranger when the courtship is initiated behind a computer screen.<br></font></div></div><!-- </hs:element230> --><!-- <hs:element231> --><div style="position: absolute; top: 495px; left: 280px; width: 636px; height: 112px; z-index: 7;" id="element231"><div align="justify"><font face="Helvetica, Arial, sans-serif" class="size11 Helvetica11" color="#000000">Upon request of a preferred member, a background check can be performed on your behalf. The background check will be conducted by a Licensed Professional Investigative Firm and includes a check of the </font><font face="Helvetica, Arial, sans-serif" class="size11 Helvetica11" color="#9E0704"><b>NCIC</b></font><font face="Helvetica, Arial, sans-serif" class="size11 Helvetica11" color="#000000"> (National Criminal Information Center) the same one used by the FBI. The background check will also include a search for actual Marital Status and Divorce. A notification will be then sent to the member in question that another user has requested the search be done. At that time, the member may allow or deny the request. If a request has been denied, it is up to you to decide if you wish to proceed with any further correspondence.<br></font></div></div><!-- </hs:element231> --><!-- <hs:element232> --><div style="position: absolute; top: 619px; left: 280px; width: 636px; height: 48px; z-index: 8;" id="element232"><div align="justify"><font face="Helvetica, Arial, sans-serif" class="size11 Helvetica11" color="#000000">If the member approves your request, you will receive one of two notifications. Either that the profile in question has been flagged pending further investigation, or that no data was found. The search is set up to flag a profile for specific charges. Felony convictions in the last 10 years, sexual offenses,<br></font></div></div><!-- </hs:element232> --><!-- <hs:element233> --><div style="position: absolute; top: 361px; left: 20px; width: 248px; height: 117px; z-index: 9;" id="element233">

Our first site was finished but, he didn't like the colors he picked, so he purchased a design type deal to speed things up so I though getting a login system instead of coding it all, (which I am very slow at) would be much quicker, but I've ran into problems, like the $this erring. I've never used that variable and don't really understand it.

He got the new template from a place called Homestead.com and it was pretty crazy, pages named in all capital letter, links named in lowercase. There were ALL kinds of problems with it.
Any help with the error would be helpful
Thanks
Dan

It looks as if your first attempt to post your code didn't work correctly as it has all come out as text. This makes it more difficult for anyone to help you. Suggest that you try it again.

<style>
.prophp_LoginForm{
	border: #0153EB 1px dotted;
	padding: 5px;
	width: 262px;
	margin: auto;
	font-size: 14px;
	color: #0153EB;
	font-weight: bold;
	text-align: left;
	background-color: #EEEEFF;
	font-family: Arial, Helvetica, sans-serif;
}

.prophp_ErrorLine{
	width: 250px;
	border: #ff0000 1px solid;
	background-color: #FFEEEE;
	color: #FF0000;
	padding: 5px;
}

.prophp_LoginLine{
	clear: both;
	padding: 2px;
}

.prophp_LoginLabel{
	float: left;
	width: 85px;
	padding-top: 4px;
}

.prophp_LoginField{
	float: left;
	width: 169px;
}

.prophp_LoginInput{
	width: 169px;
}

.prophp_LoginButton{
	background-color: #0153EB;
	color: #FFFFFF;
	border: none;
	cursor: pointer;
}

.prophp_Clear{
	clear: both;
	height: 1px;
}

</style>


<form class="prophp_LoginForm" method="post" action="index.php">
	<?php if ($this->error_message){ ?>
	<div class="prophp_ErrorLine"><?=$this->error_message?></div>
	<?php } ?>
	<div class="prophp_LoginLine">
		<div class="prophp_LoginLabel">Username :</div>
		<div class="prophp_LoginField"><input class="prophp_LoginInput" type="text" name="<?=$this->username_post_var?>" value="" /></div>
	</div>
	<div class="prophp_LoginLine">
		<div class="prophp_LoginLabel">Password :</div>
		<div class="prophp_LoginField"><input class="prophp_LoginInput" type="password" name="<?=$this->password_post_var?>" value="" /></div>
	</div>
	<div class="prophp_LoginLine">
		<div class="prophp_LoginLabel">&nbsp;</div>
		<div class="prophp_LoginField"><input class="prophp_LoginButton" type="submit" name="doLogin" value="Login" /></div>
	</div>
	<div class="prophp_Clear">&nbsp;</div>
</form>

Here's the code I put in without all the junk.
Hopefully this one will work.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.