Newbie Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mlah384
Forum Newbie
Posts: 2
Joined: Mon Mar 26, 2007 3:18 pm

Newbie Question

Post by mlah384 »

I'm a newbie when it comes to php. How do you have a button in a flash website launch a passworded php download page? Where when you click the button in flash it launches a php web page with downloadable files on it but it asks for a password in order to access the page? But it asks for just a password, not a user name, there will be no data base. I was unable to find anything on that with search, most of the password stuff I found was way too advanced for the simple task that i need.

Thanks
User avatar
waradmin
Forum Contributor
Posts: 240
Joined: Fri Nov 04, 2005 2:57 pm

Post by waradmin »

I would say the best way to do it would be a JavaScript encrypted password script: http://www.dynamicdrive.com/dynamicindex9/password.htm. You should be able to modify it fairly easy to just require a password.
mlah384
Forum Newbie
Posts: 2
Joined: Mon Mar 26, 2007 3:18 pm

Post by mlah384 »

Thanks! I will try that... Also, i wanted to mention that I'm using dreamweaver 8 and did not know if there was an option in dreamweaver that would make it easier?

Also, would that java script work on a php page? The page i'm passwording is already set up as php where the client can upload new files to it. Or would it be easier to just redo the whole page as a .html?

Thanks!
Post Reply