![]() |
How to Create a simple, single password in Dreamweaver?
I'm finally (I know, I know) migrating from GoLive to Dreamweaver, and just need to make a form with a single, simple password to protect an exam from prying eyes. I am a "pretty colors" sort of guy - I love Illustrator, InDesign and Photoshop, etc., but don't know code.
So what's the deal? I can make the form, found the password field to make the text turn to dots, but how do you assign a value for the password? Can you just protect a page? Can I do a sign up form with a password that leads to another form? Don't care how it's done, really - and I'm not worried about REAL security (no payments, just a test I'm giving that won't change for a year - so I don't want others to see it until they are really taking it). But the test will be a form too, so I can't just do a locked *.pdf. Help! FWIW - I'm finally leaving Live Motion 2 also (Adobe's old Flash creator) for Flash CS3 too. A summer of re-learning..... |
Can you put the page you want into a new sub directory? If so, use htaccess.
http://www.javascriptkit.com/howto/htaccess3.shtml If you use a field, then you would have to use javascript, perl or php to make read the password field. In php, it would look something like this: If the password field has a name of password and the password is "test1234", then when variable is passed to the next page, the php code would... $variable = $password; PHP Code:
|
Wow! Thanks for the quick response. I cut and pasted the code and it worked great!
I'll try the htaccess too. But even the link you sent seems secure enough for what I want. Thanks again. |
BTW - this is best site, hands down, for ANY QUESTION.
Thanks again, slodave! (And Wayne!) |
I'm glad it worked. I forgot to put in the corresponding [INPUT TYPE=PASSWORD NAME=password] for the first page.
|
BTW, if youre using DW, it will write all the PHP code for you in Design mode. No need to "learn" code! ;)
|
Thanks for the tip. I can cut and paste code - thanks again slowdave - but don't know how to write it - except for some basic way back when.....
Haven't got the htaccess/password stuff to work. Will try again Friday. |
One more question though:
If I just cut and paste the simplest code, can't anyone just do the "view source" thing and SEE the password? I'm dealing with medical doctors in their 40's & 50's mainly, so not really an issue, but I'm curious.... |
Quote:
|
Here's a simple php/HTML page...
First Page: PHP Code:
PHP Code:
|
I'll write the two pages for you, if you want...
|
| All times are GMT -8. The time now is 11:43 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website