Re: Single Menu Page with Bv and PHP | | Robert,
part of the problem is that you have changed the function to "header" instead of site_header, and this causes problems with html's "header" definition.
Please follow these instructions: pre.php looks like this: Forget all about this, unless there is more code in here which you have not posted here. If there is no other code, you can even delete the pre.php file. In other case, i need the full code. login. php file looks like this:
<?php
{ include($DOCUMENT_ROOT.'/include/site_header.php'); Add this line include($DOCUMENT_ROOT.'/include/site_footer.php'); Add this line include($DOCUMENT_ROOT.'/include/database.php'); include($DOCUMENT_ROOT.'/include/pre.php'); Delete this line, unless there was more code, as said above.
include($DOCUMENT_ROOT.'/include/user.php');
if (user_isloggedin()) {
user_logout();
$user_name='';
}
if ($submit) {
user_login($user_name,$password);
} site_header(); //convert this line to what you see.
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();
?> site_header.php
You have mistaken here. Please follow these simple steps:
You have created the header in BV. Ok, open the page in BV, now click on Page html, Start of page, and paste this code: <? function site_header() { ?> Now click on the End of page, and paste this other code: <? } ?>
These steps are described in post nr 1 of this very thread.
Save the page as "site_header" and publish it in the same folder where the pre.php was. ($DOCUMENT_ROOT/include). Attention: before publishing set the extension to php. site_footer.php
Follow excactly the same steps with "site_footer.php:
In Page html, Start of Page, paste the code: <? function site_footer() { ?>
and in the End of Page tag, <? } ?> Save the page as "site_footer" and publish as php. Ok, you are done.
__________________
Navaldesign Logger Lite: Low Cost, Customizable, multifeatured Login script Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more.... Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA! |