How do I make a page of my website password protected? How do I redirect someone from a payment page to the page where they choose a password? How do I monitor those passwords?
[sub]* From Manny, the Mod You Love to Hate, to me:[/sub]
How do I make a page of my website password protected? How do I redirect someone from a payment page to the page where they choose a password? How do I monitor those passwords?
[sub]* From Manny, the Mod You Love to Hate, to me:[/sub]
I’m not sure if you’re looking for an answer to your question or just ranting against manhattan. Assuming your just looking for an answer to the quest…
You’ll have to use some type of server-side programming language to handle passwords. ASP is pretty easy to set up for this…if your web server is IIS/Microsoft and can run ASP scripts, let me know and I’ll send you some sample scripts for that.
You can also use ASP to redirect someone to another page. The code would look like this:
Response.Redirect("newpage.asp")
You can also use javascript to redirect, which is client-side programming and doesn’t require any special setup on your web server. The code might look like this:
<html>
<head>
<script language='javascript'>
<!--
function redirectuser(){
location.href = 'someotherpage.html';
};
//-->
</script>
</head>
<body onLoad='redirectuser();'>
You are now being redirected to some other page...
</body>
</html>
Thanks, that’s a help. And I wasn’t ranting against Manattan (except in my heart); I was just explaining why I posted this in the Pit.
Another way is to us .htaccess which IIRC, is a perl script.
If you are using a .Net capable server (runs on Win2K Server or Win2K3 server), ASP.Net has some very nice ways to run security. Find out from your web host if you can use the .Net framework, and if so, I can show you how to setup password protection fairly quickly.
If you don’t have access to .Net, what kind of server are you on? Is it Unix? If so, then the .htaccess file is what you want to use. If it is an NT server without .Net then you’ll want to write it in standard ASP. I wouldn’t recommend implementing your security with javascript, as that can be turned off rather easilly. You’ll want to use some kind of server script, so if you can find out what you’re running on, I’ll be happy to help.
So. In order to circumvent one rule, you ignore another and **knowingly post in an incorrect forum? I think not. What I believe you should have done, rather than indiscriminately ignore the rules governing your membership here, is e-mailed the GQ mods and asked for permission to post this in the only forum on these boards where this topic belongs.
I’m closing this thread. Manhattan may have some comments to add to it later, however. Wouldn’t surprise me a bit.