Welcome to Our Community

Wanting to join the rest of our members? Feel free to sign up today.

Sign Up

Help regarding hidden texts

Discussion in 'Web Design Forum' started by Alimoqi, Mar 4, 2011.

  1. Alimoqi

    Alimoqi Banned

    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 ?
     
  2. Victorious

    Victorious New Member

    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.
     
  3. addmac

    addmac New Member

    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.
     
  4. madhusmita

    madhusmita Banned

    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.
     

Share This Page