Password Wizard for dummies - Post ID...

User 187934 Photo


Senior Advisor
20,266 posts

Nice Job Peter.:)
Here's something else you might like to go along with WAM to integrate the login to your page and skip the popup.
Paste this code to the Header HTML of a HTML box.

<SCRIPT LANGUAGE="JavaScript">
function Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
}
else {
alert("Please enter your username and password.");
}
}
</script>

Paste this code to the same html box as above but to the Body html.

<form name=login>
<input type="hidden" name="server" value="rothelund.dk/aner_files_dk/index.html">
Username:
<input type=text name=username size=20>
<br><br>
Password:
<input type=password name=password size=20>
<input type=button value="Login!" onClick="Login(this.form)" name="button">
</form>



I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2328527 Photo


Registered User
44 posts

Hi Eric and Inger

Just become a Registered User :D and I thank you both for your help in my decision phase. I hope some day that I can repay all that you have done for me. :/

Eric
Thanks for your kind words about my job, but there is a long way to make something just have a little shreed of what I have seen here. I will try out your above suggested code. Maybe on the S-drive.

Inger
I will start out with your code just to make the log out happen

Kind regards Peter
Seeing you guys on another thread perhaps :cool:
Life is to short for bad solutions and sour red wine. So take care out there.

www.rothelund.dk



User 2144671 Photo


Registered User
1 post

I have made a very nice secure site with 50 + pages, using CCPW. I could not be happier with CCPW. I would like to grant public access to one page of the site.

Is there a simple way to do this, or will I need to make the site public and then restrict all of the other 50 + pages for each granted user?
User 187934 Photo


Senior Advisor
20,266 posts

Leave the protect script off the page that you don't want protected.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2355658 Photo


Registered User
9 posts

Eric,

Thank you (again!) for your page http://progrower.coffeecup.com/login.html . It alone helped me create the secure page that I needed to set up on my VSD/S-Drive web site. I have used several of your help pages to build my web site, and I really appreciate it.

There is just one important change I would make to the page. It wasn't intuitive to me that the page I needed to send my link through was the password.html page. It took me a while to figure this out, and then it worked great. I kept trying to go to the protect.html page, and kept (correctly) getting a message that the page was unavailable. If you could just add a bit at the end that says something to the effect of "link to the password.html page" that might help.

Thanks!

http://www.humananimalmedicine.org

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.