I have been following instructions from a previous thread kindly given to me by Navaldesign. They read as follows:
"Add a warning in your pages that to be able to see the prices, they need to be logged in. So add a link to the login page (see next paragraph).
Add a link to a page where you will add the Single Protect Page. This page won't have actually ANY protected content, it only servers to make them login.
Then, add the prices in the pages you already have, in a table.
Right Click the Table, and insert the following codes in the Before Tag and After Tag of the Table:
Before Tag:
<?php
if($_SESSION['password'] != ""){
echo'
in the after Tag add this code:
';
?>
Last, add this other code in the Page HTML, Start of Page:
<?php
session_start();
?>
When a user is logged in, he will be able to see the table with the prices, if he is not, the table will not display.
These pages will need to be PHP. "
Everything was going ok until I tried to link to the protected page. The following error message appeared:
"Parse error: syntax error, unexpected $end in /home/******** /public_html/maps.php on line 248"
(******** is our BV password).
I hope that Naval may pick this up, but otherwise if anyone else can help, it would be appreciated.
Russell
rboyd@allgifts.com.au
"Add a warning in your pages that to be able to see the prices, they need to be logged in. So add a link to the login page (see next paragraph).
Add a link to a page where you will add the Single Protect Page. This page won't have actually ANY protected content, it only servers to make them login.
Then, add the prices in the pages you already have, in a table.
Right Click the Table, and insert the following codes in the Before Tag and After Tag of the Table:
Before Tag:
<?php
if($_SESSION['password'] != ""){
echo'
in the after Tag add this code:
';
?>
Last, add this other code in the Page HTML, Start of Page:
<?php
session_start();
?>
When a user is logged in, he will be able to see the table with the prices, if he is not, the table will not display.
These pages will need to be PHP. "
Everything was going ok until I tried to link to the protected page. The following error message appeared:
"Parse error: syntax error, unexpected $end in /home/******** /public_html/maps.php on line 248"
(******** is our BV password).
I hope that Naval may pick this up, but otherwise if anyone else can help, it would be appreciated.
Russell
rboyd@allgifts.com.au