
Originally Posted by
navaldesign
Robert
you either need to redefine the functions yourself, or use completely new functions. If you use new functions, you need to edit the script files accordingly.
Thanks for helping me along with this. Below is the current files involved and the error I am recieving. the file structure and some notes are as follows:
public_html/account/
- I made this page normally and simply recreated the form by using the same ACTION,METHOD and the same fields and labels using the name/value pairs as it is used in the login.php file
public_html/account/
- there are other .php files in this directory as well
public_html/include/
- database.php
- pre.php --- this is defines the functions for the header and footer
- user.php
- header.php --- made in bluevoda
- footer.php --- bluevoda created as well and their source images are below
- header.jpg
- footer.jpg.
the signin.html page is here: http://www.graphxntrix.com/signin.html
pre.php looks like this:
Code:
<?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');
}
?>
login. php file looks like this:
Code:
<?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();
?>
header.php
Code:
<?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>?>
Parse error: syntax error, unexpected '<' in /home2/grapxcom/public_html/include/header.php on line 2
i just now changed the image names used for the header and footer but get now:
Fatal error: Cannot redeclare header() in /home2/grapxcom/public_html/include/pre.php on line 3
do you mean change the actual file name: header.php ----> to something else?