Hello All Is it possable for me to have some text on a page that is hidden unless you have logged in for example i have a web page that displays caravans for exchange with all the details for each van but i want to keep contact details hidden unless they have registered if you see what i mean to save having 2 pages 1 with all detals and 1 with restricted details ?
You don't need 2 pages. Registration and login is done through server side I presume so using server side coding you can achieve that with just one page and session or a global variable.
session variables Depends what your using. If its asp.net, you can use the built in login controls for what you want. If its php, you can create a session variable if a user is logged in, and check on that to show pages and content.
Yes this can be done very easily with the help of the PHP.Now a days most of the sites are using this method for restricting some data to the members only.The forums are also allowing the visitors to view the comments but in order to reply, you need to login there.