![]() |
| |||||||
| Webdesign & HMTL Here you can post all your questions regarding Webdesign, HTML, CSS or DHMTL. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Help regarding hidden texts 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 ? |
| |||
| If I understand you correctly, you could achieve this effect in two ways: one is via CSS/JavaScript and the other is via PHP. In CSS, you could employ the visibility:hidden/visible together with a conditional JavaScript statement. In PHP, you could just use "IF" and "include". I do not intend to go into details of how it should be done. But I just wish to tell you that it is possible. Google it up, I'm sure you'll find what you need. Good luck! ![]() |
| ||||
| If you can use PHP it would be best. With Javascript/CSS anyone could look at the source and still see your text.
__________________ Looking for FREE TRAFFIC? |
| ||||
| Basically you want to have the login form go to an 'action' page which checks that the login details are correct and if they are it will set a cookie something like 'loggedin = true' (you would set that same variable to false by default). Then the page you want hidden text on would use an if statement something like this: if (loggedin == true) { ... show the secret text... } If you need more help let me know by posting again and I'll see what I can come up with for you. But chances are there are lots of scripts out there that do this. If you really don't know PHP though they may be a bit daunting to use. Donna
__________________ Looking for FREE TRAFFIC? |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DHTML or Javascript: tooltip rollover text with hidden layer position? | RoboGeek | Webdesign & HMTL | 1 | 05-24-2006 05:47 AM |
| wife has two cel phones. says same phone number for both phones and she takes calls & texts on these phones? | u9026b | General Discussions | 1 | 01-14-2006 09:17 AM |