a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Passwords

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Passwords
Page: [1]
 
Cebkent

 

Posts: 20
From: USA
Status: offline

 
Passwords - 5/8/2003 13:08:46   
Hi. :) I' ve searched through old posts & FAQs looking for an answer, but it doesn' t seem anyone has asked my exact question, so I' m posting here.

Do I need to create a subweb just to have one page password-protected? I don' t even want to have usernames. Just a simple form, with a single password for everyone, that allows access to one page. Do I really need a subweb for that? What about a simple popup (like the one to login here!) that just asks for a password? I' m not trying to make anything overly " secure" (obviously); I' m just trying to set aside certain files for a small group of people.

(Oh, I' m using FP 2000)

TIA!

< Message edited by Cebkent -- 5/8/2003 1:10 PM >
whosyodaddy

 

Posts: 136
Joined: 3/9/2003
Status: offline

 
RE: Passwords - 5/8/2003 20:08:40   
yes, you must have a subweb converted to the web, or try checking out the " Spooky Log-in" even though it costs money, i' ve heard its worth it. http://www.outfront.net/spooky/login.htm http://www.outfront.net/spooky/login.htm

_____________________________


(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/9/2003 9:04:15   
Thanks for replying...

There' s no quick java program I could implement? My host has to set up the subweb...it' s just a hassle for one page. [:j]

(in reply to Cebkent)
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: Passwords - 5/9/2003 9:14:42   
you can do it with an asp script. Does your host support asp?

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/9/2003 9:18:36   
Yes. I have IMC Online (VIA Networks). How/where would I access the appropriate script?

< Message edited by Cebkent -- 5/9/2003 9:19 AM >

(in reply to Cebkent)
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: Passwords - 5/9/2003 9:22:22   
sweet - ok - do this:

create a folder in FP.

in that folder create a page called index.asp as follows (replace guest and login with your own username and password)

<%
msg = " " 
If Request(" Submit" )<>" "  Then
If Request(" username" ) = " guest"  and Request(" password" )=" login"  Then
Session(" Valid" ) = Request(" username" )
response.redirect " nextpage.asp"     ' first protected page here
Else  msg = " Invalid username or password. Try again!" 
End If
End If
%>
<html><head><title>Password Protect</title></head>
<body><form action=" index.asp"  method=" post" ><table>
<%If msg <> " "  Then%>
<tr> <td colspan=" 2" ><font color=red><%=msg%></font></td></tr>
<%End If%>
<tr> <td>UserName:</td> <td><input type=" text"  name=" UserName" ></td></tr>
<tr><td>Password:</td> <td><input type=" Password"  name=" Password" ></td></tr>
<tr><td colspan=" 2" ><input type=" submit"  name=" Submit" ></td></tr>
</table></form></body></html>


nb: change " nextpage.asp" to the next page that you want people to go to after logging in.

On top of every ASP page you want to protect in the directory add the following function to the very top of the page:

<%If Session(" Valid" ) = " "  Then
Response.redirect " index.asp" 
End If%>


Any page with this in it will not allow the user to view it unless they are logged in!

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/9/2003 9:34:35   
WOW. [B]Thanks![/B] (This looks simple enough, but I won' t even pretend to say I won' t be back here to ask how to troubleshoot it!) :)

(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/9/2003 13:30:04   
:) [:' (] ALRIGHT. I' ve been weeding out my typos for the last two hours now (FP was being temperamental about copy & paste) and I can no longer find anything to indicate why this sucker ain' t workin' . :)

When I enter the info and click on Submit, it just bounces me back to the index.asp page. Here' s everything from head to toe:

quote:


<%
msg = " "
If Request(" Submit" )<>" " Then
If Request (" username" )=" guest" and Request(" password" )=" cebkent" Then
Session(" Valid" ) = Request(" username" )
response.redirect " praxis.asp" ' first protected page here
Else msg = " Invalid username or password. Try again!"
End If
End If
%>
<html>

<head>
<meta http-equiv=" Content-Type" content=" text/html; charset=windows-1252" >
<title>PRAXIS III</title>
<meta name=" GENERATOR" content=" Microsoft FrontPage 4.0" >
<meta name=" ProgId" content=" FrontPage.Editor.Document" >
<meta name=" Microsoft Theme" content=" axis 011" >
<meta name=" Microsoft Border" content=" none" >
</head>

<body><form action=" index.asp" method=" post" ><table width=" 892" >
<%If msg <> " " Then%>
<tr> <td colspan=" 3" width=" 884" ><img border=" 0" src=" ../images/Other/SEIb.gif" align=" right" ><b><font size=" 6" >PRAXIS III Info</font></b>
<tr>
<td colspan=" 3" width=" 884" ><font color=" red" ><b>Restricted Access</b></font>
<p>This area is reserved only for Region 9 PRAXIS III Assessors.<br>
Please enter your username and password to access your area pages.
<tr> <td colspan=" 3" width=" 884" ><%=msg%></td></tr>
<%End If%>
<tr> <td width=" 100" bgcolor=" #DDDDCC" ><b>UserName:</b></td> <td width=" 259" bgcolor=" #DDDDCC" ><input type=" text" name=" username" ></td> <td width=" 513" rowspan=" 2" ></td></tr>
<tr><td width=" 100" bgcolor=" #DDDDCC" ><b>Password:</b></td> <td width=" 259" bgcolor=" #DDDDCC" ><input type=" password" name=" password" ></td></tr>
<tr><td colspan=" 3" width=" 884" ><input type=" submit" name=" Submit" >
<tr><td colspan=" 3" width=" 884" ><font size=" 2" ><i>If you feel you have reached
this message in error, please contact the <a href=" mailto:webmaster@seisummit.org" >webmaster</a>.</i></font>
</table></form></body></html>


And at the top of praxis.asp, I have

quote:

<%If Session(" Valid" ) = " " Then
Response.redirect " index.asp"
End If%>



Micah, can you tell me where I' ve screwed up?? [:j]

(Part of me is wondering, since these pages are in a subfolder of the root directory, if their paths shouldn' t be folder/file.asp as opposed to just file.asp. Whenever I create an internal link, the subfolder is always listed in the path--that' s why I' m asking that. Does that make sense?)

< Message edited by Cebkent -- 5/9/2003 1:34 PM >

(in reply to Cebkent)
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: Passwords - 5/9/2003 14:10:09   
yes, all paths should be relative

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/9/2003 14:33:01   
Sorry...I don' t know what that means. Should the links in the code read " index.asp" or " folder/index.asp" ? (I do know that this isn' t the source of my holdup because I published both ways and I still couldn' t get the password form to work.

Also, are you able to discern what error I made (assuming it' s me) to prevent the password form from moving me on when I hit Submit?

Thanks...

(in reply to Cebkent)
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: Passwords - 5/9/2003 16:19:00   
hmmm! I can' t see any problems.

try copying the code that I gave you exactly. Paste it into notepad, and then copy the notepad stuff into FP. don' t edit it until you know it works. see what happens.

(remember to save your pages as .asp)

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/13/2003 12:44:43   
Okay, I did just your straight code and the page is still is bumping me back to itself. I know my host supports asp because I have other asp pages (although the code was generated by FP itself). I haven' t even changed your user/password settings.

Here' s the URL that' s misbehaving: http://www.seisummit.org/praxis/index.asp which is supposed to move the user on to praxis.asp

Thanks...

(in reply to Cebkent)
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: Passwords - 5/13/2003 12:50:28   
its working fine ... just to prove it.....

quote:

Below is a collection of resources and forms that you will find useful


you' re obviously using the wrong password!!!

username = guest
password = login

all fine here!!!!

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/13/2003 14:04:01   
WOW!! No, it' s my browser!! I use Netscape 7.02. When I tried it in IE, it went through just fine. Now why would that be...and is there anything I can do??

(in reply to Cebkent)
Eli

 

Posts: 2659
From: ... er ...
Status: offline

 
RE: Passwords - 5/13/2003 14:43:53   
not sure - don' t use Netscape? :)

Let me ask around - keep watching

_____________________________

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning

(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/13/2003 16:16:18   
I checked the settings for my browser and can' t find anything obvious that would cause the issue. I' ll check my resources too.

In the meantime, I' m also wondering why only the Username and Password part of the form shows up upon first accessing the index page, but if one of the fields produces an error, then the entire designed page shows up. The index page you see when you first go to it is not all that' s there. But I can' t get the full page to show up except when I purposely mistype in one of the fields to produce the error message. That' s when my logo and other layout elements show up.

[I]I' m sure you didn' t anticipate my original post being dragged out this long in this many ways. I really appreciate your help!! [/I][B]Thank you.[/B] :) :)

(in reply to Cebkent)
Cebkent

 

Posts: 20
From: USA
Status: offline

 
RE: Passwords - 5/16/2003 9:28:21   
Just bumpin' this up to see if there have been any developments...

_____________________________

The world is run by those who show up.
--Steven Clift

(in reply to Cebkent)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> Microsoft FrontPage Help >> Passwords
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts