|
|
|
|
|
|
Registered
Join Date: May 2005
Location: Chicago, IL
Posts: 574
|
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..... Last edited by RKC; 06-05-2008 at 02:55 PM.. |
||
|
|
|
|
Registered
|
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:
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
|
|
|
|
Registered
Join Date: May 2005
Location: Chicago, IL
Posts: 574
|
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. |
||
|
|
|
|
Registered
Join Date: May 2005
Location: Chicago, IL
Posts: 574
|
BTW - this is best site, hands down, for ANY QUESTION.
Thanks again, slodave! (And Wayne!) |
||
|
|
|
|
Registered
|
I'm glad it worked. I forgot to put in the corresponding [INPUT TYPE=PASSWORD NAME=password] for the first page.
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD Last edited by slodave; 06-05-2008 at 05:59 PM.. |
||
|
|
|
|
Insert Tag Line HERE.....
|
BTW, if youre using DW, it will write all the PHP code for you in Design mode. No need to "learn" code!
|
||
|
|
|
|
|
Registered
Join Date: May 2005
Location: Chicago, IL
Posts: 574
|
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. |
||
|
|
|
|
Registered
Join Date: May 2005
Location: Chicago, IL
Posts: 574
|
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.... |
||
|
|
|
|
Registered
|
No, the php code will not be visible, only the HTML it displays. The hidden input takes a value (test1234) and passes that in the headers as a variable to the next page.
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
|
|
|
|
Registered
|
Here's a simple php/HTML page...
First Page: PHP Code:
PHP Code:
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD Last edited by slodave; 06-05-2008 at 06:05 PM.. |
||
|
|
|
|
Registered
|
I'll write the two pages for you, if you want...
__________________
Make sure to check out my balls in the Pelican Parts Catalog! 917 inspired shift knobs. '84 Targa - Arena Red - AX #104 '07 Toyota Camry Hybrid - Yes, I'm that guy... '01 Toyota Corolla - Urban Camouflage - SOLD |
||
|
|
|