Re: restrict access by Ignacio Valle on Dec 7, 2009 at 6:06:03 pm
Thanks very much, Fernando.
My client hire me just to design a very simple web with 5 pages and little information about the company.
But the other day he told me in advanced that maybe he would like to have a "Client Access" button where they'll be able to fill orders. "OK...", I answered, but what I really wanted to say was "Shit!!!!"...
What I'm trying to do is to be prepared because this request is going to come... And I'm new with DW... So I don't know nothing about any programming language…
Can you please help me a little bit on how can I address this two situations?
A- Let's imagine that the client is OK with just setting up a password to access just to certain pages/forms of the web site.
I think this is what you are calling "Apply of the behaviors to secure a page". How can I do this?
B- Let's imagine that the client wants to setup connections for databases. What's necessary to do this? PHP, ASP, Coldfusion? Programmers…? What else...?
Re: restrict access by Fernando Mol on Dec 7, 2009 at 7:00:12 pm
If you are not familiar with any programming language I can recommend you PHP. It's free and most hosting services have it.
This is important, the host service must support the language you are going to use. Check this with your hosting service.
In addition to PHP, you probably will have to get your hands dirty with some database. If you use PHP chances are that your host will use MySQL.
Both, PHP and MySQL are free and widely supported.
You will need to change the extension on the pages that use PHP from .htm to .php
To develop, you'll need to install locally PHP, a server and MySQL. I recommend you to use WAMP if you are in windows or MAMP if you are on a Mac, to install all the tools. Get a good look in the phpmyadmin tool, very easy to use once you understand databases.
There's a tutorial, here in the COW, on some basic PHP and MySQL, by Abraham Chaffin. Read it slowly until your head explodes, then rest half a day and read it again and again...
And I will stop here. This is really the hard part. Once you understand how to setup all the tools and understand the basics of PHP you can use Dremaweaver to connect to your database (where the user names and passwords will be located) and use the DW behaviors to protect your pages.
Until then, happy readings.
PS. Feel free to keep asking.
*Always share a link to your site and rate the posts. This is a free service for you and for us.
Re: restrict access by Ignacio Valle on Dec 7, 2009 at 7:39:36 pm
Thanks, Fernando, I'll take a look to all this stuff.
But what about the easy way to implement a password to only some pages or forms of the web? Is there an easy way to just do this: clic on a link and it asks you to enter a password to see that page or fill the form.
Although this is ABSOLUTLY the done thing... there is a temporary solution to protect pages where you only want one password for people to access it...
I have used this several times before to save using a database when all you need is for osmeone to access a page to make edits to it, for instance if you are editing txt files and not database entries...
It is part of the MAX's php free stuff, and its pretty handy tool to have in on your harddrive if you dont yet know PHP and MySql
If you understand CSS, you can alter the appearance of the login area so it can say Ignacio Valle's login area... or whatever else you want to.. Download it, unpack it to your root folder, then read the simple help file
p.s. Please remember to rate our post replies and tick if solved. Also, please remember that we here are NOT employed by Adobe, we do this out of love and fun, so its always nice to recieve a Please and Thank You! :o)