Re: Single Menu Page with Bv and PHP
Hi Beth, can i have an URL of the pages with the Header and the rest ?= just curious to have a look.
Hi Beth, can i have an URL of the pages with the Header and the rest ?= just curious to have a look.
<?php function header() { include ($DOCUMENT_ROOT.'/include/header.php'); } //the syntax of this function may be wrong because I somehow managed to delete the original .php file so I had to try to write it from memory function site_header("$title") { echo'<HEAD><TITLE>'.$title.'</TITLE><HEAD><BODY>'; } function site_footer() { include ($DOCUMENT_ROOT.'/include/footer.php'); } ?>
<?php { include($DOCUMENT_ROOT.'/include/database.php'); include($DOCUMENT_ROOT.'/include/pre.php'); include($DOCUMENT_ROOT.'/include/user.php'); if (user_isloggedin()) { user_logout(); $user_name=''; } if ($submit) { user_login($user_name,$password); } site_header('.Login To GraphXntrix.com.'); if ($feedback) { echo '<FONT COLOR="RED"><H2>'.$feedback.'</H2></FONT>'; } echo '<H3>Login To GraphXntrix.com</H3> <P> Enter your user name and password. <P> <FORM ACTION="'. $PHP_SELF .'" METHOD="POST"> <B>User Name:</B><BR> <INPUT TYPE="TEXT" NAME="user_name" VALUE="" SIZE="10" MAXLENGTH="15"> <P> <B>Password:</B><BR> <INPUT TYPE="password" NAME="password" VALUE="" SIZE="10" MAXLENGTH="15"> <P> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Login To GrapXntrix.com"> </FORM> <P> <A HREF="register.php">[ Register A New Account ]</A> <P> <A HREF="changepass.php">[ Change Your Password ]</A> <P> <A HREF="changeemail.php">[ Change Your Email Address ]</A>'; site_footer(); ?>
<?php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <TITLE></TITLE> <META name="GENERATOR" content="Created by BlueVoda"> </HEAD> <BODY bgcolor="#000000" text="#FFFFFF" link="#00FFFF" vlink="#FF00FF" alink="#00FF00"> <IMG src="header.jpg" alt="" align="top" border="0" width="800" height="80" style="position:absolute;left:0px;top:0px;z-index:0"> </BODY> </HTML>?>
<?php function site_header($title) { echo'[COLOR=red][B]<HEAD>[/B][/COLOR][COLOR=black]<[/COLOR]TITLE>'.$title.'</TITLE>[COLOR=red][B]</HEAD>[/B][/COLOR][COLOR=black]<[/COLOR]BODY>'; } ?>
site_header('.Login To GraphXntrix.com.');
[LEFT]<?php function site_header($title) { echo'[COLOR=red][B]<HEAD>[/B][/COLOR][COLOR=black]<[/COLOR]TITLE>'.$title.'</TITLE>[COLOR=red][B]</HEAD>[/B][/COLOR][COLOR=black]<[/COLOR]BODY>'; } ?>[/LEFT] [LEFT]//----------------------------//[/LEFT] [LEFT]site_header('.Login To GraphXntrix.com.'); [/LEFT]
site_header('.Login to GraphXntrix.com.'); //now says... site_header();
[SIZE=1][COLOR=#0000ff] [/COLOR][/SIZE] <? function site_header() {>[SIZE=1]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> [/SIZE]
Comment